11 #define PROTO_ASSERT(stmt,args...) 12 #define PR_assert(stmt) 13 #define PR_error(stmt) 14 #define PR_warning(stmt) 18 #define PROTO_ASSERT(stmt,args...) 19 #define PR_assert(stmt) 20 #define PR_error(stmt) 21 #define PR_warning(stmt) 29 #define PROTO_ASSERT(stmt,args...) \ 31 (fprintf(stderr,"%s:%d: error: ",__FILE__,__LINE__) && \ 32 fprintf(stderr,"Assertion `" #stmt "` failed.\n\t") && \ 33 fprintf(stderr,args) && \ 34 fprintf(stderr,"\n"))); \ 35 if (!(stmt)){std::abort();} 50 #define PR_assert(stmt) assert( (stmt) ); 53 #define PR_error(stmt) \ 54 fprintf(stderr,"error thrown = `" #stmt "`!!!\n\t"); \ 57 #define PR_warning(stmt) \ 58 fprintf(stderr,"warning thrown = `" #stmt "` !!!\n\t"); 61 #define PROTO_ASSERT(stmt,args...) 62 #define PR_assert(stmt) 63 #define PR_error(stmt) 64 #define PR_warning(stmt)