mirror of
https://github.com/cc65/cc65.git
synced 2024-12-25 02:29:52 +00:00
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:
parent
257005696f
commit
b2e06dbb9d
@ -43,7 +43,7 @@
|
||||
# define assert(expr)
|
||||
#else
|
||||
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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user