Browse Source

Add assert modification

Garrett Brown 5 years ago
parent
commit
a5004f4c8d
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/libraries/Box2D/b2_settings.h

+ 4 - 1
src/libraries/Box2D/b2_settings.h

@@ -27,12 +27,15 @@
 #include <assert.h>
 #include <assert.h>
 #include <float.h>
 #include <float.h>
 
 
+void loveAssert(bool test, const char* teststr);
+
 #if !defined(NDEBUG)
 #if !defined(NDEBUG)
 	#define b2DEBUG
 	#define b2DEBUG
 #endif
 #endif
 
 
 #define B2_NOT_USED(x) ((void)(x))
 #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 char	int8;
 typedef signed short int16;
 typedef signed short int16;