Forward box2d asserts to exception, then catch those in the new* functions

This commit is contained in:
Bart van Strien
2011-10-12 21:36:46 +02:00
parent 57f9cf439e
commit b32464f0d3
4 changed files with 53 additions and 22 deletions
+4 -1
View File
@@ -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;