aboutsummaryrefslogtreecommitdiff
path: root/src/lua/ldo.h
diff options
context:
space:
mode:
authorLi Jin <dragon-fly@qq.com>2021-03-03 21:31:01 +0800
committerLi Jin <dragon-fly@qq.com>2021-03-03 21:33:37 +0800
commit1df786307c1983b8ce693e3916081a8bcd4e95ae (patch)
tree6c7aeb2198d825877fd3d179c394b7a5c1f06a17 /src/lua/ldo.h
parent66168b112b707172b9035edf8c1daed469781e06 (diff)
downloadyuescript-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.h2
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