diff options
author | chai <chaifix@163.com> | 2018-11-13 08:27:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-13 08:27:26 +0800 |
commit | 75792c15480d3d99b2ba7e79e143e4b569b22611 (patch) | |
tree | 61e3abc45326c67d348e08400da11f60dff18fa3 /src/lua/modules/net/je_lua_net.cpp | |
parent | c7e59fb376453e5abad8c862b52eb0f4c7ba829b (diff) |
*修改lua ref
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 }, |