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
@@ -204,7 +204,7 @@ namespace physfs
{ 0, 0 }
};
int luaopen_file(lua_State * L)
extern "C" int luaopen_file(lua_State * L)
{
return luax_register_type(L, "File", functions);
}
+1 -1
View File
@@ -42,7 +42,7 @@ namespace physfs
int w_File_tell(lua_State * L);
int w_File_seek(lua_State * L);
int w_File_lines(lua_State * L);
int luaopen_file(lua_State * L);
extern "C" int luaopen_file(lua_State * L);
} // physfs
} // filesystem
} // love
@@ -59,7 +59,7 @@ namespace physfs
{ 0, 0 }
};
int luaopen_filedata(lua_State * L)
extern "C" int luaopen_filedata(lua_State * L)
{
return luax_register_type(L, "FileData", w_FileData_functions);
}
@@ -35,7 +35,7 @@ namespace physfs
FileData * luax_checkfiledata(lua_State * L, int idx);
int w_FileData_getFilename(lua_State * L);
int w_FileData_getExtension(lua_State * L);
int luaopen_filedata(lua_State * L);
extern "C" int luaopen_filedata(lua_State * L);
} // physfs
} // filesystem
} // love
@@ -383,7 +383,7 @@ namespace physfs
0
};
int luaopen_love_filesystem(lua_State * L)
extern "C" int luaopen_love_filesystem(lua_State * L)
{
if (instance == 0)
{