mirror of
https://github.com/love2d/love.git
synced 2026-08-18 03:34:23 +02:00
Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)
This commit is contained in:
@@ -39,7 +39,7 @@ namespace box2d
|
||||
}
|
||||
|
||||
int w_CircleShape_setRadius(lua_State * L)
|
||||
{
|
||||
{
|
||||
CircleShape * c = luax_checkcircleshape(L, 1);
|
||||
float r = (float)luaL_checknumber(L, 2);
|
||||
c->setRadius(r);
|
||||
@@ -61,7 +61,7 @@ namespace box2d
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
int luaopen_circleshape(lua_State * L)
|
||||
extern "C" int luaopen_circleshape(lua_State * L)
|
||||
{
|
||||
return luax_register_type(L, "CircleShape", functions);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user