mirror of
https://github.com/cc65/cc65.git
synced 2024-12-24 11:31:31 +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:
parent
46a306e400
commit
1d3ea5cde0
@ -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))
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user