Changes in uspace/lib/c/generic/assert.c [e8d3c6f5:6fa9a99d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
re8d3c6f5 r6fa9a99d 41 41 static atomic_t failed_asserts = {0}; 42 42 43 void __helenos_assert_quick_abort(const char *cond, const char *file, unsigned int line) 44 { 45 /* 46 * Send the message safely to kio. Nested asserts should not occur. 47 */ 48 kio_printf("Assertion failed (%s) in file \"%s\", line %u.\n", 49 cond, file, line); 50 51 /* Sometimes we know in advance that regular printf() would likely fail. */ 52 abort(); 53 } 54 55 void __helenos_assert_abort(const char *cond, const char *file, unsigned int line) 43 void assert_abort(const char *cond, const char *file, unsigned int line) 56 44 { 57 45 /*
Note:
See TracChangeset
for help on using the changeset viewer.