From 48fb475ce59f8f5079f54e9731d75dd01f01e417 Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 10 Oct 2019 09:00:08 +0800 Subject: *update --- lapi.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lapi.c') 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) { -- cgit v1.1-26-g67d0