source: CIVL/examples/omp/nas-dc/DC/macrodef.h@ 1aaefd4

main test-branch
Last change on this file since 1aaefd4 was ea777aa, checked in by Alex Wilton <awilton@…>, 3 years ago

Moved examples, include, build_default.properties, common.xml, and README out from dev.civl.com into the root of the repo.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@5704 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 499 bytes
Line 
1#define PutErrMsg(msg) {fprintf(stderr," %s, errno = %d\n", msg, errno);}
2
3#define WriteToFile(ptr,size,nitems,stream,logf) if( fwrite(ptr,size,nitems,stream) != nitems )\
4 {\
5 fprintf(stderr,"\n Write error from WriteToFile()\n"); return ADC_WRITE_FAILED; \
6 }
7
8#ifdef WINNT
9#define FSEEK(stream,offset,whence) fseek(stream, (long)offset,whence);
10#else
11#define FSEEK(stream,offset,whence) fseek(stream,offset,whence);
12#endif
13
14#define GetRecSize(nd,nm) (DIM_FSZ*nd+MSR_FSZ*nm)
Note: See TracBrowser for help on using the repository browser.