The CU_PASS and CU_FAIL macros are nice, but it'd be nice to have a string which can be printed. The following macros do so (based off of CU_PASS and friends):
Same as CU_Pass(message), but doesn't stringify the message./
{ CU_assertImplementation(CU_TRUE, LINE, (str), FILE, "", CU_FALSE); }
{ CU_assertImplementation(CU_FALSE, LINE, (str), FILE, "", CU_FALSE); }
{ CU_assertImplementation(CU_FALSE, LINE, (str), FILE, "", CU_TRUE); }
Anonymous
I should perhaps be more precise. A string (pointer to an array of chars) which can be printed, not just a stringified piece of static text.
Note that it'll be up to the end programmer to provide any stringified text necessary.
Yes with printf formatting.