#ifndef hocassrt_h #define hocassrt_h #include #undef assert #undef _assert # ifndef NDEBUG # ifndef stderr # include # endif #if defined(__STDC__) # define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__,__LINE__);hoc_execerror(#ex, (char *)0);}} #else # define assert(ex) {if (!(ex)){fprintf(stderr,"Assertion failed: file %s, line %d\n", __FILE__,__LINE__);hoc_execerror("ex", (char *)0);}} #endif # else # define _assert(ex) ; # define assert(ex) ; # endif #endif