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/ldo.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/ldo.h')
-rw-r--r-- | src/lua/ldo.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/ldo.h b/src/lua/ldo.h index c7721d6..6bf0ed8 100644 --- a/src/lua/ldo.h +++ b/src/lua/ldo.h | |||
@@ -23,7 +23,7 @@ | |||
23 | ** at every check. | 23 | ** at every check. |
24 | */ | 24 | */ |
25 | #define luaD_checkstackaux(L,n,pre,pos) \ | 25 | #define luaD_checkstackaux(L,n,pre,pos) \ |
26 | if (L->stack_last - L->top <= (n)) \ | 26 | if (l_unlikely(L->stack_last - L->top <= (n))) \ |
27 | { pre; luaD_growstack(L, n, 1); pos; } \ | 27 | { pre; luaD_growstack(L, n, 1); pos; } \ |
28 | else { condmovestack(L,pre,pos); } | 28 | else { condmovestack(L,pre,pos); } |
29 | 29 | ||