This commit is contained in:
commit
47aee91ef4
396 changed files with 32003 additions and 0 deletions
23
tools/psyq/include/ASSERT.H
Normal file
23
tools/psyq/include/ASSERT.H
Normal file
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* $PSLibId: Run-time Library Release 4.7$
|
||||
*/
|
||||
/*
|
||||
* File:assert.h
|
||||
*/
|
||||
|
||||
#ifndef _ASSERT_H
|
||||
#define _ASSERT_H
|
||||
|
||||
# ifdef NDEBUG
|
||||
|
||||
# define _assert(x)
|
||||
# define assert(x)
|
||||
|
||||
# else
|
||||
|
||||
# define _assert(x) {if (!(x)){printf("Assertion failed: file \"%s\", line %d\n", __FILE__, __LINE__);exit(1);}}
|
||||
# define assert(x) _assert(x)
|
||||
|
||||
# endif
|
||||
|
||||
#endif /* _ASSERT_H */
|
Loading…
Add table
Add a link
Reference in a new issue