Changes in uspace/lib/c/include/assert.h [d8de5d3:13f2461] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/assert.h
rd8de5d3 r13f2461 47 47 */ 48 48 49 #define STR(l) #l 50 #define STR2(l) STR(l) 51 49 52 #ifndef NDEBUG 50 53 … … 52 55 do { \ 53 56 if (!(expr)) \ 54 assert_abort(#expr, __FILE__, __LINE__); \57 assert_abort(#expr, __FILE__, STR2(__LINE__)); \ 55 58 } while (0) 56 59 … … 61 64 #endif /* NDEBUG */ 62 65 63 extern void assert_abort(const char *, const char *, unsigned int)66 extern void assert_abort(const char *, const char *, const char *) 64 67 __attribute__((noreturn)); 68 65 69 66 70 #endif
Note:
See TracChangeset
for help on using the changeset viewer.