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
+2
View File
@@ -45,6 +45,8 @@
#include "wrap_WheelJoint.h"
#include "wrap_RopeJoint.h"
#define ASSERT_GUARD(A) try { A } catch (love::Exception & e) { return luaL_error(L, e.what()); }
namespace love
{
namespace physics