mirror of
https://github.com/love2d/love.git
synced 2026-08-15 15:51:12 +02:00
Add assert modification
This commit is contained in:
@@ -27,12 +27,15 @@
|
||||
#include <assert.h>
|
||||
#include <float.h>
|
||||
|
||||
void loveAssert(bool test, const char* teststr);
|
||||
|
||||
#if !defined(NDEBUG)
|
||||
#define b2DEBUG
|
||||
#endif
|
||||
|
||||
#define B2_NOT_USED(x) ((void)(x))
|
||||
#define b2Assert(A) assert(A)
|
||||
//#define b2Assert(A) assert(A)
|
||||
#define b2Assert(A) loveAssert((A), #A)
|
||||
|
||||
typedef signed char int8;
|
||||
typedef signed short int16;
|
||||
|
||||
Reference in New Issue
Block a user