ORCA-C/ORCACDefs/assert.h
2017-10-21 20:21:37 -05:00

24 lines
508 B
C

/****************************************************************
*
* assert.h - debugging facilities
*
* February 1989
* Mike Westerfield
*
* Copyright 1989,1990, 1996
* Byte Works, Inc.
*
****************************************************************/
#ifdef assert
#undef assert
#endif
extern void __assert(char *, int, char *);
#ifndef NDEBUG
#define assert(expression) (expression) ? ((void) 0) : (__assert(__FILE__, __LINE__, #expression))
#else
#define assert(expression) ((void) 0)
#endif