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