diff options
author | Li Jin <dragon-fly@qq.com> | 2020-06-22 16:50:40 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2020-06-22 16:50:40 +0800 |
commit | cd2b60b101a398cb9356d746364e70eaed1860f1 (patch) | |
tree | a1fe71b76faabc4883f16905a94164ce5c23e692 /src/lua/ldebug.h | |
parent | 88c1052e700f38cf3d8ad82d469da4c487760b7e (diff) | |
download | yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.gz yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.tar.bz2 yuescript-cd2b60b101a398cb9356d746364e70eaed1860f1.zip |
add support for local variable declared with attribute 'close' and 'const' for Lua 5.4.
Diffstat (limited to 'src/lua/ldebug.h')
-rw-r--r-- | src/lua/ldebug.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/src/lua/ldebug.h b/src/lua/ldebug.h new file mode 100644 index 0000000..1fe0efa --- /dev/null +++ b/src/lua/ldebug.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | ** $Id: ldebug.h $ | ||
3 | ** Auxiliary functions from Debug Interface module | ||
4 | ** See Copyright Notice in lua.h | ||
5 | */ | ||
6 | |||
7 | #ifndef ldebug_h | ||
8 | #define ldebug_h | ||
9 | |||
10 | |||
11 | #include "lstate.h" | ||
12 | |||
13 | |||
14 | #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1) | ||
15 | |||
16 | #define resethookcount(L) (L->hookcount = L->basehookcount) | ||
17 | |||
18 | /* | ||
19 | ** mark for entries in 'lineinfo' array that has absolute information in | ||
20 | ** 'abslineinfo' array | ||
21 | */ | ||
22 | #define ABSLINEINFO (-0x80) | ||
23 | |||
24 | LUAI_FUNC int luaG_getfuncline (const Proto *f, int pc); | ||
25 | LUAI_FUNC const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, | ||
26 | StkId *pos); | ||
27 | LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, | ||
28 | const char *opname); | ||
29 | LUAI_FUNC l_noret luaG_forerror (lua_State *L, const TValue *o, | ||
30 | const char *what); | ||
31 | LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, | ||
32 | const TValue *p2); | ||
33 | LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, | ||
34 | const TValue *p2, | ||
35 | const char *msg); | ||
36 | LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1, | ||
37 | const TValue *p2); | ||
38 | LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, | ||
39 | const TValue *p2); | ||
40 | LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); | ||
41 | LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg, | ||
42 | TString *src, int line); | ||
43 | LUAI_FUNC l_noret luaG_errormsg (lua_State *L); | ||
44 | LUAI_FUNC int luaG_traceexec (lua_State *L, const Instruction *pc); | ||
45 | |||
46 | |||
47 | #endif | ||