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:
parent
46a306e400
commit
1d3ea5cde0
1 changed files with 2 additions and 2 deletions
|
@ -78,10 +78,10 @@ extern void (*CheckFailed) (const char* Msg, const char* Cond,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define PRECONDITION(c) \
|
#define PRECONDITION(c) \
|
||||||
{ if (!(c)) CheckFailed (MsgPrecondition, #c, __FILE__, __LINE__); }
|
((c)? 0 : (CheckFailed (MsgPrecondition, #c, __FILE__, __LINE__), 0))
|
||||||
|
|
||||||
#define CHECK(c) \
|
#define CHECK(c) \
|
||||||
{ if (!(c)) CheckFailed (MsgCheckFailed, #c, __FILE__, __LINE__); }
|
((c)? 0 : (CheckFailed (MsgCheckFailed, #c, __FILE__, __LINE__), 0))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue