Changes in uspace/lib/posix/assert.h [1e591c8:4cf8ca6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/assert.h
r1e591c8 r4cf8ca6 40 40 41 41 #ifndef NDEBUG 42 #define assert(expr) ((expr) ? (void) 0 : assert_abort(#expr, __FILE__, __LINE__)) 42 #define assert(expr) \ 43 do { \ 44 if (!(expr)) { \ 45 assert_abort(#expr, __FILE__, __LINE__); \ 46 } \ 47 } while (0) 43 48 #else 44 49 #define assert(expr) ((void) 0)
Note:
See TracChangeset
for help on using the changeset viewer.