mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
use macro for replace malloc api (see skynet_malloc.h)
This commit is contained in:
@@ -267,7 +267,7 @@ struct snlua *
|
||||
snlua_create(void) {
|
||||
struct snlua * l = malloc(sizeof(*l));
|
||||
memset(l,0,sizeof(*l));
|
||||
l->L = luaL_newstate();
|
||||
l->L = lua_newstate(skynet_lalloc, NULL);
|
||||
l->init = _init;
|
||||
return l;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user