source: soft/giet_vm/applications/rosenfeld/nrc2/include/nrkernel.h @ 826

Last change on this file since 826 was 821, checked in by meunier, 9 years ago
  • Added several versions of rosenfeld: { SLOW, FAST } x { FEATURES, NO_FEATURES }
  • Added native linux compilation support
  • Added a script to check results natively
  • Started to refactor nrc code
File size: 756 bytes
Line 
1// ------------------
2// --- nrkernel.c ---
3// ------------------
4
5/*
6 * Copyright (c) 2000-2014, Lionel Lacassagne, All rights reserved
7 * Univ Paris Sud XI, CNRS
8*/
9
10#ifndef __NRKERNEL_H__
11#define __NRKERNEL_H__
12
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    })
26#endif
27
28
29
30
31#endif // __NRKERNEL_H__
Note: See TracBrowser for help on using the repository browser.