1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-23 19:29:37 +00:00

Use :? operator to allow use in expressions

git-svn-id: svn://svn.cc65.org/cc65/trunk@728 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2001-05-16 13:05:06 +00:00
parent 46a306e400
commit 1d3ea5cde0

View File

@ -78,10 +78,10 @@ extern void (*CheckFailed) (const char* Msg, const char* Cond,
*/
#define PRECONDITION(c) \
{ if (!(c)) CheckFailed (MsgPrecondition, #c, __FILE__, __LINE__); }
((c)? 0 : (CheckFailed (MsgPrecondition, #c, __FILE__, __LINE__), 0))
#define CHECK(c) \
{ if (!(c)) CheckFailed (MsgCheckFailed, #c, __FILE__, __LINE__); }
((c)? 0 : (CheckFailed (MsgCheckFailed, #c, __FILE__, __LINE__), 0))