- Timestamp:
- May 6, 2016, 3:06:29 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/rosenfeld/nrc2/include/nrkernel.h
r772 r821 11 11 #define __NRKERNEL_H__ 12 12 13 #ifdef __cplusplus 14 #pragma message ("C++") 15 extern "C" { 16 #endif 17 18 #ifdef VERBOSE_PRAGMA 19 //#pragma message ("- *** include nrkernel.h ***") 13 14 #if TARGET_OS == GIETVM 15 #define nrerror(...) ({ \ 16 printf("*** NRC Runtime Error:\n "); \ 17 printf(__VA_ARGS__); \ 18 exit(1); \ 19 }) 20 #else 21 #define nrerror(...) ({ \ 22 fprintf(stderr, "*** NRC Runtime Error:\n "); \ 23 fprintf(stderr, __VA_ARGS__); \ 24 exit(1); \ 25 }) 20 26 #endif 21 27 22 void nrerror(char error_text[]);23 void nrerror0(char error_text[]);24 void nrerror1(char *format, ...);25 26 void Error (char *format, ...);27 void Warning(char *format, ...);28 28 29 29 30 #ifdef __cplusplus31 }32 #endif33 30 34 31 #endif // __NRKERNEL_H__
Note: See TracChangeset
for help on using the changeset viewer.