Do not use '#endif/#else xxx'; it is not allowed for ANSI C
This commit is contained in:
@@ -9,14 +9,14 @@
|
||||
|
||||
#define assert(ex)
|
||||
|
||||
#else NASSERT
|
||||
#else /* NASSERT */
|
||||
|
||||
#define assert(ex) \
|
||||
{if (!(ex)) fatal("Assertion failed: file %s, line %d", __FILE__, __LINE__);}
|
||||
|
||||
#endif NASSERT
|
||||
#else lint
|
||||
#endif /* NASSERT */
|
||||
#else /* lint */
|
||||
|
||||
#define assert(ex)
|
||||
|
||||
#endif lint
|
||||
#endif /* lint */
|
||||
|
||||
Reference in New Issue
Block a user