SBSPSS/tools/psyq/include/ASSERT.H
2000-08-29 16:26:01 +00:00

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 */