Mercurial > vba-clojure
annotate src/lua/ldebug.h @ 446:2e147bf3616b
added music
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Thu, 03 May 2012 06:13:17 -0500 |
parents | 27763b933818 |
children |
rev | line source |
---|---|
rlm@1 | 1 /* |
rlm@1 | 2 ** $Id: ldebug.h,v 2.3.1.1 2007/12/27 13:02:25 roberto Exp $ |
rlm@1 | 3 ** Auxiliary functions from Debug Interface module |
rlm@1 | 4 ** See Copyright Notice in lua.h |
rlm@1 | 5 */ |
rlm@1 | 6 |
rlm@1 | 7 #ifndef ldebug_h |
rlm@1 | 8 #define ldebug_h |
rlm@1 | 9 |
rlm@1 | 10 |
rlm@1 | 11 #include "lstate.h" |
rlm@1 | 12 |
rlm@1 | 13 |
rlm@1 | 14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) |
rlm@1 | 15 |
rlm@1 | 16 #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) |
rlm@1 | 17 |
rlm@1 | 18 #define resethookcount(L) (L->hookcount = L->basehookcount) |
rlm@1 | 19 |
rlm@1 | 20 |
rlm@1 | 21 LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o, |
rlm@1 | 22 const char *opname); |
rlm@1 | 23 LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2); |
rlm@1 | 24 LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1, |
rlm@1 | 25 const TValue *p2); |
rlm@1 | 26 LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1, |
rlm@1 | 27 const TValue *p2); |
rlm@1 | 28 LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...); |
rlm@1 | 29 LUAI_FUNC void luaG_errormsg (lua_State *L); |
rlm@1 | 30 LUAI_FUNC int luaG_checkcode (const Proto *pt); |
rlm@1 | 31 LUAI_FUNC int luaG_checkopenop (Instruction i); |
rlm@1 | 32 |
rlm@1 | 33 #endif |