This repository has been archived on 2022-12-23. You can view files and clone it, but cannot push or open issues or pull requests.
fuck-premake-old2/binmodules/luasocket/main.c

16 lines
287 B
C

#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;
}