Lines Matching defs:assert
108 // Used to format messages for assert(), guarantee(), fatal(), etc.
115 #define assert(p, msg) \
118 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
123 #define assert(p, msg)
127 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", msg); \
134 // This version of assert is for use with checking return status from
144 report_vm_error(__FILE__, __LINE__, "assert(" #p ") failed", \
151 // Do not assert this condition if there's already another error reported.
152 #define assert_if_no_error(cond,msg) assert((cond) || is_error_reported(), msg)
154 #define assert(p,msg)
159 // guarantee is like assert except it's always executed -- use it for
237 /* Test assert(), fatal(), guarantee(), etc. */