diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 13:52:38 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 13:52:38 +0000 |
commit | 0a79763db57ac830746fbb70f227ca2a0b758e49 (patch) | |
tree | e7285dd46041e3cfd9016758ec83e026669f254c /libs/liblua/src/ldebug.h | |
parent | 170bc1e725d52b2b5398527b32cca68579f8d891 (diff) |
added liblua project
git-svn-id: http://svn.miranda-ng.org/main/trunk@15988 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'libs/liblua/src/ldebug.h')
-rw-r--r-- | libs/liblua/src/ldebug.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/libs/liblua/src/ldebug.h b/libs/liblua/src/ldebug.h new file mode 100644 index 0000000000..0d8966ca9a --- /dev/null +++ b/libs/liblua/src/ldebug.h @@ -0,0 +1,40 @@ +/* +** $Id: ldebug.h,v 2.12 2014/11/10 14:46:05 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] : -1) + +#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, const TValue *p1, + const TValue *p2); +LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1, + const TValue *p2, + const char *msg); +LUAI_FUNC l_noret luaG_tointerror (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); +LUAI_FUNC void luaG_traceexec (lua_State *L); + + +#endif |