diff options
author | chai <chaifix@163.com> | 2019-10-10 09:00:08 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-10-10 09:00:08 +0800 |
commit | 48fb475ce59f8f5079f54e9731d75dd01f01e417 (patch) | |
tree | ad689b5016dec16e38f4b4b29460646f348c48ef /lfunc.c | |
parent | 2980245830f2e198d61cab7a8b837dcf7971ab79 (diff) |
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -20,6 +20,7 @@ +// saw 创建 c closure,用在 LUA API lua_pushcclosure Closure *luaF_newCclosure (lua_State *L, int n) { Closure *c = &luaC_newobj(L, LUA_TCCL, sizeCclosure(n), NULL, 0)->cl; c->c.nupvalues = cast_byte(n); @@ -27,7 +28,7 @@ Closure *luaF_newCclosure (lua_State *L, int n) { } -// saw 创建lua closure +// saw 创建 lua closure Closure *luaF_newLclosure (lua_State *L, int n) { Closure *c = &luaC_newobj(L, LUA_TLCL, sizeLclosure(n), NULL, 0)->cl; c->l.p = NULL; |