ldebug.h

Go to the documentation of this file.
00001 /*
00002 ** $Id: ldebug.h,v 2.3.1.1 2007/12/27 13:02:25 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 #include "luaconf_cl2.h"
00011 
00012 #include "lstate.h"
00013 
00014 
00015 #define pcRel(pc, p)  (cast(int, (pc) - (p)->code) - 1)
00016 
00017 #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
00018 
00019 #define resethookcount(L) (L->hookcount = L->basehookcount)
00020 
00021 
00022 LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o,
00023                                              const char *opname);
00024 LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
00025 LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1,
00026                                               const TValue *p2);
00027 LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1,
00028                                              const TValue *p2);
00029 LUAI_FUNC void luaG_errormsg (lua_State *L);
00030 LUAI_FUNC int luaG_checkcode (const Proto *pt);
00031 LUAI_FUNC int luaG_checkopenop (Instruction i);
00032 
00033 #if EXCEPTION_CRASHES_VARARGS_BUG
00034 // workaround
00035 LUAI_FUNC void luaG_runerror_wa (lua_State *L, const char *s);
00036 #define luaG_runerror_1(_L, _s) luaG_runerror_wa(_L, _s)
00037 #define luaG_runerror_m(_L, _s, rest...) luaG_runerror_wa(_L, _s)
00038 #else
00039 LUAI_FUNC void luaG_runerror_ok (lua_State *L, const char *fmt, ...);
00040 #define luaG_runerror_1(_L, _s) luaG_runerror_ok(_L, _s)
00041 #define luaG_runerror_m(_L, rest...) luaG_runerror_ok(_L, rest)
00042 #endif
00043 
00044 #endif

ContextLogger2—ContextLogger2 Logger Daemon Internals—Generated on Mon May 2 13:49:54 2011 by Doxygen 1.6.1