lua/ldebug.h

Go to the documentation of this file.
00001 /*
00002 ** $Id: ldebug.h,v 2.7 2011/10/07 20:45:19 roberto Exp $
00003 ** Auxiliary functions from Debug Interface module
00004 ** See Copyright Notice in lua.h
00005 */
00006 
00007 #ifndef ldebug_h
00008 #define ldebug_h
00009 
00010 
00011 #include "lstate.h"
00012 
00013 
00014 #define pcRel(pc, p)    (cast(int, (pc) - (p)->code) - 1)
00015 
00016 #define getfuncline(f,pc)   (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
00017 
00018 #define resethookcount(L)   (L->hookcount = L->basehookcount)
00019 
00020 /* Active Lua function (given call info) */
00021 #define ci_func(ci)     (clLvalue((ci)->func))
00022 
00023 
00024 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
00025                                                 const char *opname);
00026 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2);
00027 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1,
00028                                                  const TValue *p2);
00029 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
00030                                                  const TValue *p2);
00031 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
00032 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
00033 
00034 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Fri May 25 2012 01:03:03 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs