diff options
author | chai <chaifix@163.com> | 2018-11-23 12:24:22 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-23 12:24:22 +0800 |
commit | 8d4e45c9a85175d0fc37d7d5c49ff90abb01fe4f (patch) | |
tree | 4ca2d0b34366293ad57d77c64e753c9013ccdc21 /src/lua/modules/net/je_lua_net.cpp | |
parent | cfa05003be67344fbc79c338c2ac82f0accd979d (diff) |
*修改lua bind
Diffstat (limited to 'src/lua/modules/net/je_lua_net.cpp')
-rw-r--r-- | src/lua/modules/net/je_lua_net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/modules/net/je_lua_net.cpp b/src/lua/modules/net/je_lua_net.cpp index 4b5513a..058b4e8 100644 --- a/src/lua/modules/net/je_lua_net.cpp +++ b/src/lua/modules/net/je_lua_net.cpp @@ -49,7 +49,7 @@ namespace Lua } } Socket* socket = new Socket(info); - Proxy* proxy = luax_newinstance(L, Jin_Lua_Socket, new Shared<Socket>(socket, Jin_Lua_Socket)); + Proxy* proxy = luax_newinstance(L, Jin_Lua_Socket, new Shared<Socket>(L, socket, Jin_Lua_Socket)); return 1; } @@ -57,7 +57,7 @@ namespace Lua { int size = luax_checkinteger(L, 1); Net::Buffer* buffer = new Net::Buffer(size); - Proxy* proxy = luax_newinstance(L, Jin_Lua_Buffer, new Shared<Buffer>(buffer, Jin_Lua_Buffer)); + Proxy* proxy = luax_newinstance(L, Jin_Lua_Buffer, new Shared<Buffer>(L, buffer, Jin_Lua_Buffer)); return 1; } |