diff options
Diffstat (limited to 'src/lj_debug.h')
-rw-r--r-- | src/lj_debug.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lj_debug.h b/src/lj_debug.h index 15cdee3c..28127ae9 100644 --- a/src/lj_debug.h +++ b/src/lj_debug.h | |||
@@ -33,14 +33,18 @@ LJ_FUNC const char *lj_debug_uvnamev(cTValue *o, uint32_t idx, TValue **tvp, | |||
33 | GCobj **op); | 33 | GCobj **op); |
34 | LJ_FUNC const char *lj_debug_slotname(GCproto *pt, const BCIns *pc, | 34 | LJ_FUNC const char *lj_debug_slotname(GCproto *pt, const BCIns *pc, |
35 | BCReg slot, const char **name); | 35 | BCReg slot, const char **name); |
36 | LJ_FUNC const char *lj_debug_funcname(lua_State *L, TValue *frame, | 36 | LJ_FUNC const char *lj_debug_funcname(lua_State *L, cTValue *frame, |
37 | const char **name); | 37 | const char **name); |
38 | LJ_FUNC void lj_debug_shortname(char *out, GCstr *str); | 38 | LJ_FUNC void lj_debug_shortname(char *out, GCstr *str, BCLine line); |
39 | LJ_FUNC void lj_debug_addloc(lua_State *L, const char *msg, | 39 | LJ_FUNC void lj_debug_addloc(lua_State *L, const char *msg, |
40 | cTValue *frame, cTValue *nextframe); | 40 | cTValue *frame, cTValue *nextframe); |
41 | LJ_FUNC void lj_debug_pushloc(lua_State *L, GCproto *pt, BCPos pc); | 41 | LJ_FUNC void lj_debug_pushloc(lua_State *L, GCproto *pt, BCPos pc); |
42 | LJ_FUNC int lj_debug_getinfo(lua_State *L, const char *what, lj_Debug *ar, | 42 | LJ_FUNC int lj_debug_getinfo(lua_State *L, const char *what, lj_Debug *ar, |
43 | int ext); | 43 | int ext); |
44 | #if LJ_HASPROFILE | ||
45 | LJ_FUNC void lj_debug_dumpstack(lua_State *L, SBuf *sb, const char *fmt, | ||
46 | int depth); | ||
47 | #endif | ||
44 | 48 | ||
45 | /* Fixed internal variable names. */ | 49 | /* Fixed internal variable names. */ |
46 | #define VARNAMEDEF(_) \ | 50 | #define VARNAMEDEF(_) \ |