mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-03-24 11:15:26 -05:00
31 lines
645 B
Plaintext
31 lines
645 B
Plaintext
#ifdef __MWERKS__
|
|
#if __MWERKS__ >= 0x3000
|
|
#pragma notonce
|
|
#endif
|
|
#endif
|
|
|
|
#include <ansi_params.h>
|
|
|
|
#if !_MSL_USING_MW_C_HEADERS
|
|
#include <assert.h>
|
|
#elif defined(__PALMOS_TRAPS__)
|
|
#include <cassert_Palm_OS>
|
|
#else
|
|
|
|
#ifdef assert
|
|
#undef assert
|
|
#endif
|
|
|
|
#ifdef NDEBUG
|
|
#define assert(ignore) ((void) 0)
|
|
#else
|
|
#include <assert_api.h>
|
|
|
|
#if _MSL_ASSERT_DISPLAYS_FUNC
|
|
#define assert(condition) ((condition) ? ((void) 0) : __msl_assertion_failed(#condition, __FILE__, __func__, __LINE__))
|
|
#else
|
|
#define assert(condition) ((condition) ? ((void) 0) : __msl_assertion_failed(#condition, __FILE__, 0, __LINE__))
|
|
#endif
|
|
#endif
|
|
|
|
#endif |