diff options
author | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-23 23:36:30 +1000 |
commit | 6523585c66c04cea54df50013df8886b589847d8 (patch) | |
tree | 0b22aee7064166d88595eda260ca2d17c0773da5 /libraries/luajit-2.0/src/lj_debug.h | |
parent | Update the EFL to what I'm actually using, coz I'm using some stuff not yet r... (diff) | |
download | SledjHamr-6523585c66c04cea54df50013df8886b589847d8.zip SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.gz SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.bz2 SledjHamr-6523585c66c04cea54df50013df8886b589847d8.tar.xz |
Add luaproc and LuaJIT libraries.
Two versions of LuaJIT, the stable release, and the dev version. Try the dev version first, until ih fails badly.
Diffstat (limited to '')
-rw-r--r-- | libraries/luajit-2.0/src/lj_debug.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libraries/luajit-2.0/src/lj_debug.h b/libraries/luajit-2.0/src/lj_debug.h new file mode 100644 index 0000000..f82fdfe --- /dev/null +++ b/libraries/luajit-2.0/src/lj_debug.h | |||
@@ -0,0 +1,41 @@ | |||
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(GCproto *pt, uint32_t idx); | ||
14 | LJ_FUNC const char *lj_debug_uvnamev(cTValue *o, uint32_t idx, TValue **tvp); | ||
15 | LJ_FUNC const char *lj_debug_slotname(GCproto *pt, const BCIns *pc, | ||
16 | BCReg slot, const char **name); | ||
17 | LJ_FUNC const char *lj_debug_funcname(lua_State *L, TValue *frame, | ||
18 | const char **name); | ||
19 | LJ_FUNC void lj_debug_shortname(char *out, GCstr *str); | ||
20 | LJ_FUNC void lj_debug_addloc(lua_State *L, const char *msg, | ||
21 | cTValue *frame, cTValue *nextframe); | ||
22 | LJ_FUNC void lj_debug_pushloc(lua_State *L, GCproto *pt, BCPos pc); | ||
23 | |||
24 | /* Fixed internal variable names. */ | ||
25 | #define VARNAMEDEF(_) \ | ||
26 | _(FOR_IDX, "(for index)") \ | ||
27 | _(FOR_STOP, "(for limit)") \ | ||
28 | _(FOR_STEP, "(for step)") \ | ||
29 | _(FOR_GEN, "(for generator)") \ | ||
30 | _(FOR_STATE, "(for state)") \ | ||
31 | _(FOR_CTL, "(for control)") | ||
32 | |||
33 | enum { | ||
34 | VARNAME_END, | ||
35 | #define VARNAMEENUM(name, str) VARNAME_##name, | ||
36 | VARNAMEDEF(VARNAMEENUM) | ||
37 | #undef VARNAMEENUM | ||
38 | VARNAME__MAX | ||
39 | }; | ||
40 | |||
41 | #endif | ||