mirror of
https://github.com/pret/pokeheartgold.git
synced 2026-03-22 01:36:12 -05:00
18 lines
491 B
C
18 lines
491 B
C
#ifndef _MSL_ASSERT_H_
|
|
#define _MSL_ASSERT_H_
|
|
|
|
#define assert(expr) ((expr) ? (void)0 : __msl_assertion_failed(#expr, __FILE__, __func__, __LINE__))
|
|
|
|
// For matching
|
|
#define assert_ex(expr, file, line) ((expr) ? (void)0 : __msl_assertion_failed(#expr, file, __func__, line))
|
|
|
|
// Assertion (%s) failed in "%s", function "%s", line %d
|
|
extern void __msl_assertion_failed(
|
|
const char *expr,
|
|
const char *file,
|
|
const char *func,
|
|
int line
|
|
);
|
|
|
|
#endif //_MSL_ASSERT_H_
|