Hi
I use CUnit for testing which uses a variation of "assert()" for
error detection.
Right now I do multiple asserts to verify multiple values.
Ex.
CU_ASSERT(foo==X); CU_ASSERT(foo==Y); CU_ASSERT(foo==Z);
Is there any way to macro-ize this and do it in one call?
Ex.
MYASRT(foo, (X||Y||Z));
or
MYASRT(foo,OR,X,Y,Z));
TIA. -T
--
comp.lang.c.moderated - moderation address: clcm@[EMAIL PROTECTED]
-- you must
have an appropriate newsgroups line in your header for your mail to be
seen,
or the newsgroup name in square brackets in the subject line. Sorry.