]> git.sur5r.net Git - cc65/commitdiff
Use :? operator to allow use in expressions
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 16 May 2001 13:05:06 +0000 (13:05 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Wed, 16 May 2001 13:05:06 +0000 (13:05 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@728 b7a2c559-68d2-44c3-8de9-860c34a00d81

src/common/check.h

index 38b132438887d991c2585874217e893da72d65ef..e0a211392d16ba4bda50f2d58ad791410a29b81f 100644 (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))