Import sources from 2011-03-30 iso image - sys/include
This commit is contained in:
parent
e5888a1ffd
commit
c558a99e0b
105 changed files with 11410 additions and 0 deletions
17
sys/include/ape/assert.h
Executable file
17
sys/include/ape/assert.h
Executable file
|
@ -0,0 +1,17 @@
|
|||
#pragma lib "/$M/lib/ape/libap.a"
|
||||
|
||||
#undef assert
|
||||
#ifdef NDEBUG
|
||||
#define assert(ignore) ((void)0)
|
||||
#else
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern void _assert(char *, unsigned);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
#define assert(e) {if(!(e))_assert(__FILE__, __LINE__);}
|
||||
#endif /* NDEBUG */
|
Loading…
Add table
Add a link
Reference in a new issue