Properly export all lua-facing functions and use those for initialization (love.cpp no longer explicitly mentions implementations)

This commit is contained in:
Bart van Strien
2011-12-24 01:10:40 +01:00
parent e0dcf55703
commit c707a4ca45
85 changed files with 119 additions and 114 deletions
+1 -1
View File
@@ -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)
{
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);
}
+1 -1
View File
@@ -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