mirror of
https://github.com/elliotnunn/BuildCubeE.git
synced 2024-11-19 00:05:25 +00:00
33 lines
547 B
C
33 lines
547 B
C
|
/************************************************************
|
||
|
|
||
|
Assert.h
|
||
|
Diagnostics
|
||
|
|
||
|
Copyright © Apple Computer,Inc. 1987-1990.
|
||
|
All Rights Reserved.
|
||
|
|
||
|
************************************************************/
|
||
|
|
||
|
#undef assert
|
||
|
|
||
|
#ifdef NDEBUG
|
||
|
|
||
|
#define assert(ignore) ((void) 0)
|
||
|
|
||
|
#else
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
void __assertprint(const char* file, int line, const char* expr);
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#define assert(expression) \
|
||
|
( (expression) ? (void) 0 : (__assertprint(__FILE__, __LINE__, #expression)) )
|
||
|
|
||
|
#endif
|
||
|
|
||
|
|