mirror of
https://github.com/pret/pokeheartgold.git
synced 2024-12-03 10:40:54 +00:00
19 lines
422 B
C
19 lines
422 B
C
#ifndef POKEHEARTGOLD_ASSERT_H
|
|
#define POKEHEARTGOLD_ASSERT_H
|
|
|
|
#include "error_handling.h"
|
|
|
|
/*
|
|
* Assert statements. If the expression evaluates false,
|
|
* the software will terminate.
|
|
*
|
|
* Pass NO_GF_ASSERT=1 to make to remove these.
|
|
*/
|
|
#ifdef PM_KEEP_ASSERTS
|
|
#define GF_ASSERT(expr) ((expr) ? (void)0 : GF_AssertFail())
|
|
#else
|
|
#define GF_ASSERT(...) ((void)0)
|
|
#endif // PM_KEEP_ASSERTS
|
|
|
|
#endif // POKEHEARTGOLD_ASSERT_H
|