mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
19 lines
322 B
C
19 lines
322 B
C
#ifndef LIBA_ASSERT_H
|
|
#define LIBA_ASSERT_H
|
|
|
|
#include "private/macros.h"
|
|
|
|
#ifdef NDEBUG
|
|
#define assert(e) ((void)0)
|
|
#else
|
|
#define assert(e) ((void) ((e) ? ((void)0) : __assert(#e, __FILE__, __LINE__)))
|
|
#endif
|
|
|
|
LIBA_BEGIN_DECLS
|
|
|
|
void __assert(const char * expression, const char * file, int line);
|
|
|
|
LIBA_END_DECLS
|
|
|
|
#endif
|