Lines Matching refs:cond
65 #define AssertionMessage(cond, file, line, handler) \
66 "\pAssertion \"" #cond "\" failed in " #file " at line " #line " goto " #handler
68 #define AssertionFailed(cond, file, line, handler) \
69 OXCART_DEBUGSTR( (StringPtr) AssertionMessage (cond, file, line, handler) );
71 #define AssertionMessageString(cond, file, line, handler) \
72 "\pAssertion \"" #cond "\" failed in " #file " at line " #line " goto " #handler " value -> "
74 #define AssertionFailedString(cond, file, line, handler, str) \
77 PStrCopy( mystr21, AssertionMessageString (cond, file, line, handler)); \
83 #define FailWithVal(cond, handler, num) \
84 if (cond) { \
87 AssertionFailedString(cond, __FILE__, __LINE__, handler, mystr) \
91 #define FailWithVal(cond, handler,num) \
92 if (cond) { \
98 #define FailWithStringVal(cond, handler, str, num) \
99 if (cond) { \
104 AssertionFailedString(cond, __FILE__, __LINE__, handler, mystr2) \
108 #define FailWithStringVal(cond, handler, str, num) \
109 if (cond) { \
115 #define FailWithString(cond, handler, str) \
116 if (cond) { \
117 AssertionFailedString(cond, __FILE__, __LINE__, handler, str) \
121 #define FailWithString(cond, handler, str, num) \
122 if (cond) { \
129 #define FailIf(cond, handler) \
130 if (cond) { \
131 AssertionFailed(cond, __FILE__, __LINE__, handler) \
135 #define FailIf(cond, handler) \
136 if (cond) { \
142 #define FailWithActionVal(cond, action, handler, num) \
143 if (cond) { \
146 AssertionFailedString(cond, __FILE__, __LINE__, handler, mystr) \
151 #define FailWithActionVal(cond, action, handler, num) \
152 if (cond) { \
160 #define FailWithAction(cond, action, handler) \
161 if (cond) { \
162 AssertionFailed(cond, __FILE__, __LINE__, handler) \
167 #define FailWithAction(cond, action, handler) \
168 if (cond) { \
179 #define FailMessage(cond) if (cond) AssertionFailed(cond, __FILE__, __LINE__, handler)
181 #define FailMessage(cond) {}
185 #define FailMessageVal(cond, num) \
186 if (cond) { \
189 AssertionFailedString(cond, __FILE__, __LINE__, handler, __mystr) \
192 #define FailMessageVal(cond, num) {}
200 #define ErrorMessage(cond) if (cond) AssertionFailed(cond, __FILE__, __LINE__, handler)
202 #define ErrorMessage(cond) (cond)
218 #define FailIfVerbose(cond, handler) \
219 if (cond) { \
220 AssertionFailed(cond, __FILE__, __LINE__, handler) \
224 #define FailIfVerbose(cond, handler) \
225 if (cond) { \
233 #define FailWithActionVerbose(cond, action, handler) \
234 if (cond) { \
235 AssertionFailed(cond, __FILE__, __LINE__, handler) \
240 #define FailWithActionVerbose(cond, action, handler) \
241 if (cond) { \
252 #define FailMessageVerbose(cond) if (cond) AssertionFailed(cond, __FILE__, __LINE__, handler)
254 #define FailMessageVerbose(cond) {}
262 #define ErrorMessageVerbose(cond) if (cond) AssertionFailed(cond, __FILE__, __LINE__, handler)
264 #define ErrorMessageVerbose(cond) (cond)
272 #define VDQFailMessage(cond,s) \
273 if (cond) { \
277 #define VDQFailMessage(cond, s) \
286 #define VDQErrorMessage(cond) if (cond) DebugStr((ConstStr255Param)"\p"#cond)
288 #define VDQErrorMessage(cond) (cond)