]> git.sur5r.net Git - cc65/blob - include/assert.h
This commit was generated by cvs2svn to compensate for changes in r2,
[cc65] / include / assert.h
1 /*
2  * assert.h
3  *
4  * Ullrich von Bassewitz, 06.06.1998
5  *
6  */
7
8
9
10 #ifndef _ASSERT_H
11 #define _ASSERT_H
12
13
14
15 #undef assert
16 #ifdef NDEBUG
17 #  define assert(expr)
18 #else
19 extern void _afailed (const char*, unsigned);
20 #  define assert(expr)  if ((expr) == 0) _afailed (__FILE__, __LINE__)
21 #endif
22
23
24
25 /* End of assert.h */
26 #endif
27
28
29