hocassrt.h
Go to the documentation of this file.00001
00002 #ifndef hocassrt_h
00003 #define hocassrt_h
00004 #include <assert.h>
00005 #undef assert
00006 #undef _assert
00007 # ifndef NDEBUG
00008 # ifndef stderr
00009 # include <stdio.h>
00010 # endif
00011 #if defined(__STDC__)
00012 # define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__,__LINE__);hoc_execerror(#ex, (char *)0);}}
00013 #else
00014 # define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__,__LINE__);hoc_execerror("ex", (char *)0);}}
00015 #endif
00016 # else
00017 # define _assert(ex) ;
00018 # define assert(ex) ;
00019 # endif
00020 #endif