mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
15 lines
268 B
C
15 lines
268 B
C
#ifndef ASSERT_H
|
|
#define ASSERT_H
|
|
|
|
#ifdef NDEBUG
|
|
#define assert(e) ((void)0)
|
|
#else
|
|
#define assert(e) ((void) ((e) ? ((void)0) : __assert(#e, __FILE__, __LINE__)))
|
|
#endif
|
|
|
|
void __assert(const char * expression, const char * file, int line);
|
|
|
|
void abort(void);
|
|
|
|
#endif
|