diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 10:01:16 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-01 10:01:16 -0700 |
commit | 18c03af5f0ee66eb0d75ba3892cd31c72ea6d5c2 (patch) | |
tree | 499f1d85ab2a8431a1137cecb8f8fb82d4d41f7c /tests/lua/src/ldebug.h | |
parent | 48ae14de71a389f29fdb6542e04e1c805788f5bb (diff) | |
parent | cb42d258c2ca1035cac73e7635992d997f9df735 (diff) |
Merge branch 'newtriple' into incoming
Diffstat (limited to 'tests/lua/src/ldebug.h')
-rw-r--r-- | tests/lua/src/ldebug.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/lua/src/ldebug.h b/tests/lua/src/ldebug.h new file mode 100644 index 00000000..fe39556b --- /dev/null +++ b/tests/lua/src/ldebug.h @@ -0,0 +1,34 @@ +/* +** $Id: ldebug.h,v 2.7 2011/10/07 20:45:19 roberto Exp $ +** Auxiliary functions from Debug Interface module +** See Copyright Notice in lua.h +*/ + +#ifndef ldebug_h +#define ldebug_h + + +#include "lstate.h" + + +#define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) + +#define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) + +#define resethookcount(L) (L->hookcount = L->basehookcount) + +/* Active Lua function (given call info) */ +#define ci_func(ci) (clLvalue((ci)->func)) + + +LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, + const char *opname); +LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2); +LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, + const TValue *p2); +LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, + const TValue *p2); +LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...); +LUAI_FUNC l_noret luaG_errormsg (lua_State *L); + +#endif |