ARPDAS_QNX6 1.0
nl_assert.h
Go to the documentation of this file.
00001 #ifndef NL_ASSERT_H_INCLUDED
00002 #define NL_ASSERT_H_INCLUDED
00003 
00004 #ifdef NDEBUG
00005   #define nl_assert(p) ((void)0)
00006 #else
00007   #include "nortlib.h"
00008 
00009   #define nl_assert(e) \
00010     ((e) ? 0 : \
00011     nl_error( 4, "%s:%d - Assert Failed: '%s'", __FILE__, __LINE__, #e ))
00012 #endif
00013 
00014 #ifndef assert
00015   #define assert(p) nl_assert(p)
00016 #endif
00017 
00018 #endif
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines