forked from len0rd/rockbox
This is my initial attempt to get rid of the newlib headers requirement,
for gcc built without newlib. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1017 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
4f58f6197d
commit
7da93d58fd
9 changed files with 457 additions and 0 deletions
20
firmware/include/assert.h
Normal file
20
firmware/include/assert.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
assert.h
|
||||
*/
|
||||
|
||||
#undef assert
|
||||
|
||||
#ifdef NDEBUG /* required by ANSI standard */
|
||||
#define assert(p) ((void)0)
|
||||
#else
|
||||
|
||||
#ifdef __STDC__
|
||||
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, #e))
|
||||
#else /* PCC */
|
||||
#define assert(e) ((e) ? (void)0 : __assert(__FILE__, __LINE__, "e"))
|
||||
#endif
|
||||
|
||||
#endif /* NDEBUG */
|
||||
|
||||
void _EXFUN(__assert,(const char *, int, const char *));
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue