diff options
author | Li Jin <dragon-fly@qq.com> | 2021-03-03 21:31:01 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2021-03-03 21:33:37 +0800 |
commit | 1df786307c1983b8ce693e3916081a8bcd4e95ae (patch) | |
tree | 6c7aeb2198d825877fd3d179c394b7a5c1f06a17 /src/lua/lapi.h | |
parent | 66168b112b707172b9035edf8c1daed469781e06 (diff) | |
download | yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.tar.gz yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.tar.bz2 yuescript-1df786307c1983b8ce693e3916081a8bcd4e95ae.zip |
add new metatable syntax for issue #41, fix reusing local variable issue, update built-in Lua.
Diffstat (limited to 'src/lua/lapi.h')
-rw-r--r-- | src/lua/lapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua/lapi.h b/src/lua/lapi.h index 41216b2..9e99cc4 100644 --- a/src/lua/lapi.h +++ b/src/lua/lapi.h | |||
@@ -42,6 +42,8 @@ | |||
42 | 42 | ||
43 | #define hastocloseCfunc(n) ((n) < LUA_MULTRET) | 43 | #define hastocloseCfunc(n) ((n) < LUA_MULTRET) |
44 | 44 | ||
45 | /* Map [-1, inf) (range of 'nresults') into (-inf, -2] */ | ||
45 | #define codeNresults(n) (-(n) - 3) | 46 | #define codeNresults(n) (-(n) - 3) |
47 | #define decodeNresults(n) (-(n) - 3) | ||
46 | 48 | ||
47 | #endif | 49 | #endif |