diff options
author | Mike Pall <mike> | 2011-06-07 21:37:24 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-06-07 21:37:24 +0200 |
commit | 585cf05dbd54564d2d3387cef09b3ac2d5e52afd (patch) | |
tree | d455c80e6d916ae2673d8aaaee50f0ba77d0b92a /src/lj_debug.h | |
parent | b44ccd426339a9eb0da83633d4b71a23dac29762 (diff) | |
download | luajit-585cf05dbd54564d2d3387cef09b3ac2d5e52afd.tar.gz luajit-585cf05dbd54564d2d3387cef09b3ac2d5e52afd.tar.bz2 luajit-585cf05dbd54564d2d3387cef09b3ac2d5e52afd.zip |
Move debugging/introspection functionality to lj_debug.c.
Diffstat (limited to 'src/lj_debug.h')
-rw-r--r-- | src/lj_debug.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/lj_debug.h b/src/lj_debug.h new file mode 100644 index 00000000..5a1ddbec --- /dev/null +++ b/src/lj_debug.h | |||
@@ -0,0 +1,23 @@ | |||
1 | /* | ||
2 | ** Debugging and introspection. | ||
3 | ** Copyright (C) 2005-2011 Mike Pall. See Copyright Notice in luajit.h | ||
4 | */ | ||
5 | |||
6 | #ifndef _LJ_DEBUG_H | ||
7 | #define _LJ_DEBUG_H | ||
8 | |||
9 | #include "lj_obj.h" | ||
10 | |||
11 | LJ_FUNC cTValue *lj_debug_frame(lua_State *L, int level, int *size); | ||
12 | LJ_FUNC BCLine LJ_FASTCALL lj_debug_line(GCproto *pt, BCPos pc); | ||
13 | LJ_FUNC const char *lj_debug_uvname(cTValue *o, uint32_t idx, TValue **tvp); | ||
14 | LJ_FUNC const char *lj_debug_slotname(GCproto *pt, const BCIns *pc, | ||
15 | BCReg slot, const char **name); | ||
16 | LJ_FUNC const char *lj_debug_funcname(lua_State *L, TValue *frame, | ||
17 | const char **name); | ||
18 | LJ_FUNC void lj_debug_shortname(char *out, const char *src); | ||
19 | LJ_FUNC void lj_debug_addloc(lua_State *L, const char *msg, | ||
20 | cTValue *frame, cTValue *nextframe); | ||
21 | LJ_FUNC void lj_debug_pushloc(lua_State *L, GCproto *pt, BCPos pc); | ||
22 | |||
23 | #endif | ||