mirror of
https://github.com/love2d/love.git
synced 2026-08-16 16:20:42 +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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user