mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
use new lua userdata api
This commit is contained in:
@@ -68,7 +68,7 @@ create_proxy(lua_State *L, const void *data, int index) {
|
||||
// NODECACHE, table, PROXYCACHE
|
||||
lua_pushvalue(L, -2);
|
||||
// NODECACHE, table, PROXYCACHE, table
|
||||
struct proxy * p = lua_newuserdata(L, sizeof(struct proxy));
|
||||
struct proxy * p = lua_newuserdatauv(L, sizeof(struct proxy), 0);
|
||||
// NODECACHE, table, PROXYCACHE, table, proxy
|
||||
p->data = data;
|
||||
p->index = index;
|
||||
|
||||
Reference in New Issue
Block a user