diff options
author | Li Jin <dragon-fly@qq.com> | 2022-10-31 11:32:33 +0800 |
---|---|---|
committer | Li Jin <dragon-fly@qq.com> | 2022-11-09 11:29:32 +0800 |
commit | 417ec1a37922c6178900adfec70628cad46731ff (patch) | |
tree | a5a2d74927ad2c41b5a16264a78409e1c0334b72 /win-build/Lua53/ldebug.h | |
parent | 3dd607c8887d2fe0186668aabca31bb84a41e2da (diff) | |
download | yuescript-417ec1a37922c6178900adfec70628cad46731ff.tar.gz yuescript-417ec1a37922c6178900adfec70628cad46731ff.tar.bz2 yuescript-417ec1a37922c6178900adfec70628cad46731ff.zip |
fix issue #112 and issue #113.
Diffstat (limited to 'win-build/Lua53/ldebug.h')
-rw-r--r-- | win-build/Lua53/ldebug.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/win-build/Lua53/ldebug.h b/win-build/Lua53/ldebug.h new file mode 100644 index 0000000..8cea0ee --- /dev/null +++ b/win-build/Lua53/ldebug.h | |||
@@ -0,0 +1,39 @@ | |||
1 | /* | ||
2 | ** $Id: ldebug.h,v 2.14.1.1 2017/04/19 17:20:42 roberto Exp $ | ||
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 getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : -1) | ||
17 | |||
18 | #define resethookcount(L) (L->hookcount = L->basehookcount) | ||
19 | |||
20 | |||
21 | LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, | ||
22 | const char *opname); | ||
23 | LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1, | ||
24 | const TValue *p2); | ||
25 | LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, | ||
26 | const TValue *p2, | ||
27 | const char *msg); | ||
28 | LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1, | ||
29 | const TValue *p2); | ||
30 | LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, | ||
31 | const TValue *p2); | ||
32 | LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); | ||
33 | LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg, | ||
34 | TString *src, int line); | ||
35 | LUAI_FUNC l_noret luaG_errormsg (lua_State *L); | ||
36 | LUAI_FUNC void luaG_traceexec (lua_State *L); | ||
37 | |||
38 | |||
39 | #endif | ||