Replaced most cases of type bits and type name strings in love's Lua wrapper code with type id's.

--HG--
branch : minor
This commit is contained in:
Alex Szpakowski
2015-03-01 18:32:41 -04:00
parent 3830a0969c
commit 2f419c1c83
79 changed files with 601 additions and 566 deletions
@@ -30,7 +30,7 @@ namespace box2d
FrictionJoint *luax_checkfrictionjoint(lua_State *L, int idx)
{
FrictionJoint *j = luax_checktype<FrictionJoint>(L, idx, "FrictionJoint", PHYSICS_FRICTION_JOINT_T);
FrictionJoint *j = luax_checktype<FrictionJoint>(L, idx, PHYSICS_FRICTION_JOINT_ID);
if (!j->isValid())
luaL_error(L, "Attempt to use destroyed joint.");
return j;
@@ -88,7 +88,7 @@ static const luaL_Reg functions[] =
extern "C" int luaopen_frictionjoint(lua_State *L)
{
return luax_register_type(L, "FrictionJoint", functions);
return luax_register_type(L, PHYSICS_FRICTION_JOINT_ID, functions);
}
} // box2d