mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +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:
@@ -79,7 +79,7 @@ namespace freetype
|
||||
0
|
||||
};
|
||||
|
||||
int luaopen_love_font(lua_State * L)
|
||||
extern "C" int luaopen_love_font(lua_State * L)
|
||||
{
|
||||
if (instance == 0)
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace font
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
int luaopen_glyphdata(lua_State * L)
|
||||
extern "C" int luaopen_glyphdata(lua_State * L)
|
||||
{
|
||||
return luax_register_type(L, "GlyphData", functions);
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace love
|
||||
namespace font
|
||||
{
|
||||
GlyphData * luax_checkglyphdata(lua_State * L, int idx);
|
||||
int luaopen_glyphdata(lua_State * L);
|
||||
extern "C" int luaopen_glyphdata(lua_State * L);
|
||||
|
||||
} // font
|
||||
} // love
|
||||
|
||||
@@ -35,7 +35,7 @@ namespace font
|
||||
{ 0, 0 }
|
||||
};
|
||||
|
||||
int luaopen_rasterizer(lua_State * L)
|
||||
extern "C" int luaopen_rasterizer(lua_State * L)
|
||||
{
|
||||
return luax_register_type(L, "Rasterizer", functions);
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace love
|
||||
namespace font
|
||||
{
|
||||
Rasterizer * luax_checkrasterizer(lua_State * L, int idx);
|
||||
int luaopen_rasterizer(lua_State * L);
|
||||
extern "C" int luaopen_rasterizer(lua_State * L);
|
||||
|
||||
} // font
|
||||
} // love
|
||||
|
||||
Reference in New Issue
Block a user