tools/llvm: Do not build with symbols
[minix3.git] / external / mit / lua / dist / src / ldebug.h
blob6446fb20b3cff1543893acfd8784d7837626d30a
1 /* $NetBSD: ldebug.h,v 1.1.1.2 2012/03/15 00:08:14 alnsn Exp $ */
3 /*
4 ** $Id: ldebug.h,v 1.1.1.2 2012/03/15 00:08:14 alnsn Exp $
5 ** Auxiliary functions from Debug Interface module
6 ** See Copyright Notice in lua.h
7 */
9 #ifndef ldebug_h
10 #define ldebug_h
13 #include "lstate.h"
16 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
18 #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
20 #define resethookcount(L) (L->hookcount = L->basehookcount)
23 LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o,
24 const char *opname);
25 LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
26 LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1,
27 const TValue *p2);
28 LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1,
29 const TValue *p2);
30 LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...);
31 LUAI_FUNC void luaG_errormsg (lua_State *L);
32 LUAI_FUNC int luaG_checkcode (const Proto *pt);
33 LUAI_FUNC int luaG_checkopenop (Instruction i);
35 #endif