summaryrefslogtreecommitdiff
path: root/lfunc.c
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-10-10 09:00:08 +0800
committerchai <chaifix@163.com>2019-10-10 09:00:08 +0800
commit48fb475ce59f8f5079f54e9731d75dd01f01e417 (patch)
treead689b5016dec16e38f4b4b29460646f348c48ef /lfunc.c
parent2980245830f2e198d61cab7a8b837dcf7971ab79 (diff)
*updateHEADmaster
Diffstat (limited to 'lfunc.c')
-rw-r--r--lfunc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lfunc.c b/lfunc.c
index 345af0b..ee62ba6 100644
--- a/lfunc.c
+++ b/lfunc.c
@@ -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;