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/ldebug.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/ldebug.h')
-rw-r--r-- | src/lua/ldebug.h | 10 |
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 | |||
29 | LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); | 39 | LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); |
30 | LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, | 40 | LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, |
31 | StkId *pos); | 41 | StkId *pos); |