libc

A portable C Library
Log | Files | Refs | README

assert.h (212B)


      1 #undef assert
      2 #ifdef NDEBUG
      3 #define assert(exp) ((void)0)
      4 #else
      5 #define _STR(x) _VAL(x)
      6 #define _VAL(x) #x
      7 #define assert(exp) ((exp) ? (void)0 \
      8 		     : __assert(#exp" : "__FILE__" : "_STR(__LINE__))); 
      9 #endif