1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +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:
cuz 2002-09-18 20:15:49 +00:00
parent 257005696f
commit b2e06dbb9d

View File

@ -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