This commit is contained in:
Garrett Brown
2020-08-16 19:01:59 -04:00
parent 59a1a4b2cd
commit 09db462fd6
16 changed files with 111 additions and 124 deletions
+1
View File
@@ -43,6 +43,7 @@
#include "b2_time_step.h"
#include "b2_world.h"
#include "b2_world_callbacks.h"
#include "b2_distance.h"
#include "b2_distance_joint.h"
#include "b2_friction_joint.h"
@@ -27,6 +27,8 @@
#include <stdarg.h>
#include <stdlib.h>
#include "common/Exception.h"
b2Version b2_version = {2, 4, 0};
// Memory allocators. Modify these to use your own allocator.
@@ -75,3 +77,9 @@ void b2CloseDump()
fclose(b2_dumpFile);
b2_dumpFile = nullptr;
}
void loveAssert(bool test, const char* teststr)
{
if (!test)
throw love::Exception("Box2D assertion failed: %s", teststr);
}