mirror of
https://github.com/love2d/love.git
synced 2026-08-17 11:00:31 +02:00
Forward box2d asserts to exception, then catch those in the new* functions
This commit is contained in:
@@ -22,8 +22,11 @@
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
|
||||
void loveAssert(bool test, const char *teststr);
|
||||
|
||||
#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