Changeset 00c2de63 in mainline for uspace/lib/posix/assert.h
- Timestamp:
- 2011-07-29T14:50:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b6759f4
- Parents:
- 6c69d19 (diff), 7ae249d (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/assert.h
r6c69d19 r00c2de63 40 40 41 41 #ifndef NDEBUG 42 #define assert(expr) \ 43 do { \ 44 if (!(expr)) { \ 45 assert_abort(#expr, __FILE__, __LINE__); \ 46 } \ 47 } while (0) 42 #define assert(expr) ((expr) ? (void) 0 : assert_abort(#expr, __FILE__, __LINE__)) 48 43 #else 49 44 #define assert(expr) ((void) 0)
Note:
See TracChangeset
for help on using the changeset viewer.