dfhack/depends/lua/include/ldebug.h

40 lines
1.4 KiB
C

2011-08-08 15:19:44 -06:00
/*
2021-08-05 21:04:43 -06:00
** $Id: ldebug.h,v 2.14.1.1 2017/04/19 17:20:42 roberto Exp $
2011-08-08 15:19:44 -06:00
** 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)
2016-07-26 21:23:26 -06:00
#define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : -1)
2011-08-08 15:19:44 -06:00
#define resethookcount(L) (L->hookcount = L->basehookcount)
LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
const char *opname);
2016-07-26 21:23:26 -06:00
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, ...);
2016-07-26 21:23:26 -06:00
LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
TString *src, int line);
LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
2016-07-26 21:23:26 -06:00
LUAI_FUNC void luaG_traceexec (lua_State *L);
2011-08-08 15:19:44 -06:00
#endif