mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[build/simulator] NDEBUG flag in release mode
This way, asserts are not performed on simulator platforms
This commit is contained in:
committed by
EmilieNumworks
parent
4a9bfca1f6
commit
2ed354710f
@@ -3,10 +3,10 @@
|
||||
|
||||
#include "private/macros.h"
|
||||
|
||||
#if DEBUG
|
||||
#define assert(e) ((void) ((e) ? ((void)0) : __assert(#e, __FILE__, __LINE__)))
|
||||
#else
|
||||
#ifdef NDEBUG
|
||||
#define assert(e) ((void)0)
|
||||
#else
|
||||
#define assert(e) ((void) ((e) ? ((void)0) : __assert(#e, __FILE__, __LINE__)))
|
||||
#endif
|
||||
|
||||
LIBA_BEGIN_DECLS
|
||||
|
||||
Reference in New Issue
Block a user