Windows CE port addition
This commit is contained in:
16
sys/wince/assert.h
Normal file
16
sys/wince/assert.h
Normal file
@@ -0,0 +1,16 @@
|
||||
/***
|
||||
*assert.h - define the assert macro
|
||||
*
|
||||
****/
|
||||
|
||||
#undef assert
|
||||
|
||||
#ifdef NDEBUG
|
||||
|
||||
#define assert(exp) ((void)0)
|
||||
|
||||
#else
|
||||
|
||||
#define assert(exp) (void)( (exp) || (panic("%s at %s line %ld", #exp, __FILE__,__LINE__), 1) )
|
||||
|
||||
#endif /* NDEBUG */
|
||||
Reference in New Issue
Block a user