aboutsummaryrefslogtreecommitdiff
path: root/src/lua/ldebug.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/ldebug.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/ldebug.h')
-rw-r--r--src/lua/ldebug.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lua/ldebug.h b/src/lua/ldebug.h
index 55b3ae0..974960e 100644
--- a/src/lua/ldebug.h
+++ b/src/lua/ldebug.h
@@ -26,6 +26,16 @@
26*/ 26*/
27#define ABSLINEINFO (-0x80) 27#define ABSLINEINFO (-0x80)
28 28
29
30/*
31** MAXimum number of successive Instructions WiTHout ABSolute line
32** information. (A power of two allows fast divisions.)
33*/
34#if !defined(MAXIWTHABS)
35#define MAXIWTHABS 128
36#endif
37
38
29LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); 39LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc);
30LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, 40LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n,
31 StkId *pos); 41 StkId *pos);