Changeset 694ca93f in mainline for uspace/lib/c/generic/assert.c
- Timestamp:
- 2011-05-01T19:34:26Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0e26444
- Parents:
- 1ff896e (diff), 042fbe0 (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/assert.c
r1ff896e r694ca93f 1 1 /* 2 * Copyright (c) 201 0Martin Decky2 * Copyright (c) 2011 Martin Decky 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup abs32le29 /** @addtogroup libc 30 30 * @{ 31 31 */ 32 /** @file33 */34 32 35 #ifndef KERN_abs32le_MEMSTR_H_ 36 #define KERN_abs32le_MEMSTR_H_ 33 #include <assert.h> 34 #include <stdio.h> 35 #include <stdlib.h> 36 #include <stacktrace.h> 37 37 38 #define memcpy(dst, src, cnt) _memcpy((dst), (src), (cnt)) 39 #define memsetb(dst, cnt, val) _memsetb((dst), (cnt), (val)) 40 #define memsetw(dst, cnt, val) _memsetw((dst), (cnt), (val)) 41 42 #endif 38 void assert_abort(const char *cond, const char *file, unsigned int line) 39 { 40 printf("Assertion failed (%s) in file \"%s\", line %u.\n", 41 cond, file, line); 42 stacktrace_print(); 43 abort(); 44 } 43 45 44 46 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.