assert() must be an expression of type void
git-svn-id: svn://svn.cc65.org/cc65/trunk@1396 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
# define assert(expr)
|
# define assert(expr)
|
||||||
#else
|
#else
|
||||||
extern void _afailed (const char*, unsigned);
|
extern void _afailed (const char*, unsigned);
|
||||||
# define assert(expr) if ((expr) == 0) _afailed (__FILE__, __LINE__)
|
# define assert(expr) ((expr)? (void)0 : _afailed(__FILE__, __LINE__))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user