Changeset e06e2716 in mainline for uspace/lib/c/include/assert.h
- Timestamp:
- 2011-05-22T19:17:56Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ea8fdb4
- Parents:
- 13f2461
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/assert.h
r13f2461 re06e2716 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 65
Note:
See TracChangeset
for help on using the changeset viewer.