mirror of
https://github.com/love2d/love.git
synced 2026-08-16 00:02:12 +02:00
ASSERT_GUARD raycasts
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
// LOVE
|
||||
#include <common/runtime.h>
|
||||
#include "Fixture.h"
|
||||
#include "wrap_Physics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
// LOVE
|
||||
#include <common/runtime.h>
|
||||
#include "Shape.h"
|
||||
#include "wrap_Physics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
@@ -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[] = {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
// LOVE
|
||||
#include <common/runtime.h>
|
||||
#include "World.h"
|
||||
#include "wrap_Physics.h"
|
||||
|
||||
namespace love
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user