1 /* $Id: assert.h 40271 2011-05-28 02:29:18Z twu $ */ 2 #ifndef ASSERT_INCLUDED 3 #define ASSERT_INCLUDED 4 5 #include "except.h" 6 7 #undef assert 8 9 /* #define CHECK_ASSERTIONS 1 */ 10 #ifdef CHECK_ASSERTIONS 11 extern void assert (int e); 12 #define assert(e) ((void) ((e) || (RAISE(Assert_Failed),0))) 13 #else 14 #define assert(e) ((void) 0) 15 #endif 16 17 #endif 18