Initial community commit
This commit is contained in:
15
Src/external_dependencies/openmpt-trunk/include/premake/binmodules/luasocket/main.c
vendored
Normal file
15
Src/external_dependencies/openmpt-trunk/include/premake/binmodules/luasocket/main.c
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <luashim.h>
|
||||
|
||||
int luaopen_socket_core(lua_State *L);
|
||||
|
||||
#ifdef _WIN32
|
||||
__declspec(dllexport) int luaopen_luasocket(lua_State *L)
|
||||
#else
|
||||
int luaopen_luasocket(lua_State *L)
|
||||
#endif
|
||||
{
|
||||
shimInitialize(L);
|
||||
luaL_requiref(L, "socket", luaopen_socket_core, 1);
|
||||
lua_pop(L, 1);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user