SBSPSS/tools/psyq/include/ASSERT.H

24 lines
352 B
C++
Raw Normal View History

2000-08-29 18:26:01 +02:00
/*
* $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 */