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 /lapi.c | |
parent | 2980245830f2e198d61cab7a8b837dcf7971ab79 (diff) |
Diffstat (limited to 'lapi.c')
-rw-r--r-- | lapi.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) { |