ASSERT_GUARD raycasts

This commit is contained in:
Bart van Strien
2011-12-29 13:37:42 +01:00
parent f72e61be06
commit 5ad9821290
7 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -24,6 +24,7 @@
// LOVE
#include <common/runtime.h>
#include "Fixture.h"
#include "wrap_Physics.h"
namespace love
{
+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -24,6 +24,7 @@
// LOVE
#include <common/runtime.h>
#include "Shape.h"
#include "wrap_Physics.h"
namespace love
{
+1 -1
View File
@@ -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
View File
@@ -24,6 +24,7 @@
// LOVE
#include <common/runtime.h>
#include "World.h"
#include "wrap_Physics.h"
namespace love
{