supermario/base/SuperMarioProj.1994-02-09/Interfaces/CIncludes/Assert.h

40 lines
682 B
C
Raw Permalink Normal View History

2019-06-29 15:17:50 +00:00
/************************************************************
Assert.h
Diagnostics
Copyright © Apple Computer,Inc. 1987-1991.
All Rights Reserved.
This file is used in these builds: ROM System
Change History (most recent first):
<4> 8/8/91 JL Update copyright
To Do:
************************************************************/
#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