Browse Source

ASSERT_GUARD raycasts

Bart van Strien 13 years ago
parent
commit
5ad9821290

+ 1 - 1
src/modules/physics/box2d/wrap_Fixture.cpp

@@ -152,7 +152,7 @@ namespace box2d
 	{
 		Fixture * t = luax_checkfixture(L, 1);
 		lua_remove(L, 1);
-		return t->rayCast(L);
+		ASSERT_GUARD(return t->rayCast(L);)
 	}
 
 	int w_Fixture_setFilterData(lua_State * L)

+ 1 - 0
src/modules/physics/box2d/wrap_Fixture.h

@@ -24,6 +24,7 @@
 // LOVE
 #include <common/runtime.h>
 #include "Fixture.h"
+#include "wrap_Physics.h"
 
 namespace love
 {

+ 1 - 1
src/modules/physics/box2d/wrap_Physics.h

@@ -59,7 +59,7 @@ namespace box2d
 	int w_newCircleShape(lua_State * L);
 	int w_newRectangleShape(lua_State * L);
 	int w_newPolygonShape(lua_State * L);
-    int w_newEdgeShape(lua_State * L);
+	int w_newEdgeShape(lua_State * L);
 	int w_newChainShape(lua_State * L);
 	int w_newDistanceJoint(lua_State * L);
 	int w_newMouseJoint(lua_State * L);

+ 1 - 1
src/modules/physics/box2d/wrap_Shape.cpp

@@ -74,7 +74,7 @@ namespace box2d
 	{
 		Shape * t = luax_checkshape(L, 1);
 		lua_remove(L, 1);
-		return t->rayCast(L);
+		ASSERT_GUARD(return t->rayCast(L);)
 	}
 
 	int w_Shape_computeAABB(lua_State * L)

+ 1 - 0
src/modules/physics/box2d/wrap_Shape.h

@@ -24,6 +24,7 @@
 // LOVE
 #include <common/runtime.h>
 #include "Shape.h"
+#include "wrap_Physics.h"
 
 namespace love
 {

+ 1 - 1
src/modules/physics/box2d/wrap_World.cpp

@@ -159,7 +159,7 @@ namespace box2d
 	{
 		World * t = luax_checkworld(L, 1);
 		lua_remove(L, 1);
-		return t->rayCast(L);
+		ASSERT_GUARD(return t->rayCast(L);)
 	}
 
 	static const luaL_Reg functions[] = {

+ 1 - 0
src/modules/physics/box2d/wrap_World.h

@@ -24,6 +24,7 @@
 // LOVE
 #include <common/runtime.h>
 #include "World.h"
+#include "wrap_Physics.h"
 
 namespace love
 {