mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Fixes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user