summaryrefslogtreecommitdiff
path: root/lapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'lapi.c')
-rw-r--r--lapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lapi.c b/lapi.c
index 80fc34b..712c348 100644
--- a/lapi.c
+++ b/lapi.c
@@ -552,6 +552,7 @@ LUA_API const char *lua_pushfstring (lua_State *L, const char *fmt, ...) {
}
+// saw 创建 C 闭包,并设置 upvalue,如果没有upvalue,设置为轻量C函数(5.2开始引入)
LUA_API void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) {
lua_lock(L);
if (n == 0) {