Changeset 955f2a5 in mainline for uspace/lib/c/include/assert.h
- Timestamp:
- 2011-05-21T11:26:23Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b3e854
- Parents:
- 0c33b1d5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/include/assert.h
r0c33b1d5 r955f2a5 55 55 } while (0) 56 56 57 #define assert_static(expr) \ 58 do { \ 59 if (!(expr)) \ 60 assert_static_abort("Assertion failed (" #expr \ 61 ") in file \"" __FILE__ "\".\n"); \ 62 } while (0) 63 57 64 #else /* NDEBUG */ 58 65 59 66 #define assert(expr) 67 #define assert_static(expr) 60 68 61 69 #endif /* NDEBUG */ … … 63 71 extern void assert_abort(const char *, const char *, unsigned int) 64 72 __attribute__((noreturn)); 73 extern void assert_static_abort(const char *); 74 65 75 66 76 #endif
Note:
See TracChangeset
for help on using the changeset viewer.