24 lines
352 B
C
24 lines
352 B
C
/*
|
|
* $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 */
|