lilium-voyager/lcc/include/mips/irix/assert.h
2005-08-26 17:39:27 +00:00

14 lines
275 B
C
Executable file

#ifndef __ASSERT
#define __ASSERT
void assert(int);
#endif /* __ASSERT */
#undef assert
#ifdef NDEBUG
#define assert(ignore) ((void)0)
#else
extern int _assert(char *, char *, unsigned);
#define assert(e) ((void)((e)||_assert(#e, __FILE__, __LINE__)))
#endif /* NDEBUG */