diff options
Diffstat (limited to 'src/lua/modules/net/je_lua_net.cpp')
-rw-r--r-- | src/lua/modules/net/je_lua_net.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/lua/modules/net/je_lua_net.cpp b/src/lua/modules/net/je_lua_net.cpp index 4240903..1d0204a 100644 --- a/src/lua/modules/net/je_lua_net.cpp +++ b/src/lua/modules/net/je_lua_net.cpp @@ -62,13 +62,10 @@ namespace Lua return 1; } - LUA_PORT int luaopen_Socket(lua_State* L); - LUA_PORT int luaopen_Buffer(lua_State* L); - LUA_EXPORT int luaopen_net(lua_State* L) { - luaopen_Socket(L); - luaopen_Buffer(L); + luax_newclass(L, luaopen_Socket); + luax_newclass(L, luaopen_Buffer); luaL_Reg f[] = { { "init", l_initNetwork }, |