diff options
author | chai <chaifix@163.com> | 2018-11-12 22:23:35 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-12 22:23:35 +0800 |
commit | c7e59fb376453e5abad8c862b52eb0f4c7ba829b (patch) | |
tree | caefc559396525f6521ad8ff8c4f7f3f035942c2 /src/lua/modules/net/je_lua_net.cpp | |
parent | af62f267a24091a16cbafe844d59cdbd4e78f5b1 (diff) |
*修改结构
Diffstat (limited to 'src/lua/modules/net/je_lua_net.cpp')
-rw-r--r-- | src/lua/modules/net/je_lua_net.cpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/lua/modules/net/je_lua_net.cpp b/src/lua/modules/net/je_lua_net.cpp index 58ece43..4240903 100644 --- a/src/lua/modules/net/je_lua_net.cpp +++ b/src/lua/modules/net/je_lua_net.cpp @@ -62,13 +62,6 @@ namespace Lua return 1; } - LUA_IMPLEMENT const luaL_Reg f[] = { - { "init", l_initNetwork }, - { "newSocket", l_Socket }, - { "newBuffer", l_Buffer }, - { 0, 0 } - }; - LUA_PORT int luaopen_Socket(lua_State* L); LUA_PORT int luaopen_Buffer(lua_State* L); @@ -76,7 +69,13 @@ namespace Lua { luaopen_Socket(L); luaopen_Buffer(L); - + + luaL_Reg f[] = { + { "init", l_initNetwork }, + { "newSocket", l_Socket }, + { "newBuffer", l_Buffer }, + { 0, 0 } + }; luax_newlib(L, f); return 1; |