OSDN Git Service

Update lejos_osek to nxtOSEK_v205b0.zip
[nxt-jsp/etrobo-atk.git] / nxtOSEK / samples / c++ / smartPtrTest / nxtAssert.h
1 #ifndef _NXTASSERT_\r
2 #define _NXTASSERT_\r
3 \r
4 #include "nxtConfig.h"\r
5 \r
6 #ifdef __cplusplus
7 extern "C" {
8 #endif\r
9 \r
10 #undef assert
11 #define assert(exp) nxtAssert(exp)\r
12 \r
13 #ifndef NXT_ASSERT\r
14         #define nxtAssert(p)    ((void)0)\r
15 #else\r
16         extern void __nxtAssert(const char *file, int line, const char *exp);\r
17         #define nxtAssert(__e) ((__e) ? (void)0 : __nxtAssert(__FILE__, __LINE__, #__e))\r
18 #endif\r
19 \r
20 #ifdef __cplusplus
21 }
22 #endif\r
23 \r
24 #endif\r
25 \r