- Main Page
- Related Pages
- Modules
- Data Structures
- Files

# lua/ldebug.h

Go to the documentation of this file.

    00001 /*
    00002 ** $Id: ldebug.h,v 2.3 2005/04/25 19:24:10 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 getline(f,pc)   (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
    00017
    00018 #define resethookcount(L)       (L->hookcount = L->basehookcount)
    00019
    00020
    00021 LUAI_FUNC void luaG_typeerror (lua_State *L, const TValue *o,
    00022                                              const char *opname);
    00023 LUAI_FUNC void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
    00024 LUAI_FUNC void luaG_aritherror (lua_State *L, const TValue *p1,
    00025                                               const TValue *p2);
    00026 LUAI_FUNC int luaG_ordererror (lua_State *L, const TValue *p1,
    00027                                              const TValue *p2);
    00028 LUAI_FUNC void luaG_runerror (lua_State *L, const char *fmt, ...);
    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 #endif