lua/ldebug.h File Reference

#include "lstate.h"

Go to the source code of this file.

Defines

#define pcRel(pc, p)   (cast(int, (pc) - (p)->code) - 1)
#define getline(f, pc)   (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
#define resethookcount(L)   (L->hookcount = L->basehookcount)

Functions

void luaG_inithooks (lua_State *L)
void luaG_typeerror (lua_State *L, const TObject *o, const char *opname)
void luaG_concaterror (lua_State *L, StkId p1, StkId p2)
void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2)
int luaG_ordererror (lua_State *L, const TObject *p1, const TObject *p2)
void luaG_runerror (lua_State *L, const char *fmt,...)
void luaG_errormsg (lua_State *L)
int luaG_checkcode (const Proto *pt)


Define Documentation

#define getline ( f,
pc   )     (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)

Definition at line 16 of file ldebug.h.

Referenced by currentline(), and traceexec().

#define pcRel ( pc,
 )     (cast(int, (pc) - (p)->code) - 1)

Definition at line 14 of file ldebug.h.

Referenced by currentpc(), and traceexec().

#define resethookcount (  )     (L->hookcount = L->basehookcount)

Definition at line 18 of file ldebug.h.

Referenced by lua_sethook(), preinit_state(), and traceexec().


Function Documentation

void luaG_aritherror ( lua_State L,
const TObject p1,
const TObject p2 
)

Definition at line 582 of file ldebug.c.

References luaG_typeerror(), and luaV_tonumber().

Referenced by Arith().

int luaG_checkcode ( const Proto pt  ) 

Definition at line 466 of file ldebug.c.

References luaG_symbexec(), NO_REG, and Proto::sizecode.

Referenced by close_func(), LoadFunction(), and traverseproto().

void luaG_concaterror ( lua_State L,
StkId  p1,
StkId  p2 
)

Definition at line 575 of file ldebug.c.

References lua_assert, luaG_typeerror(), and ttisstring.

Referenced by luaV_concat().

void luaG_errormsg ( lua_State L  ) 

Definition at line 614 of file ldebug.c.

References lua_State::errfunc, incr_top, luaD_call(), luaD_throw(), restorestack, setobjs2s, and ttisfunction.

Referenced by lua_error(), and luaG_runerror().

void luaG_inithooks ( lua_State L  ) 

Definition at line 60 of file ldebug.c.

References lua_State::base_ci, lua_State::ci, currentpc(), and lua_State::hookinit.

Referenced by traceexec().

int luaG_ordererror ( lua_State L,
const TObject p1,
const TObject p2 
)

Definition at line 590 of file ldebug.c.

References luaG_runerror(), luaT_typenames, and ttype.

Referenced by luaV_lessequal(), and luaV_lessthan().

void luaG_runerror ( lua_State L,
const char *  fmt,
  ... 
)

Definition at line 627 of file ldebug.c.

References addinfo(), luaG_errormsg(), and luaO_pushvfstring().

Referenced by Arith(), LoadConstants(), LoadFunction(), LoadHeader(), LoadInt(), LoadSignature(), LoadUpvalues(), lua_getinfo(), lua_yield(), luaD_call(), luaD_growCI(), luaG_ordererror(), luaG_typeerror(), luaH_index(), luaH_set(), luaM_growaux(), luaM_realloc(), luaV_concat(), luaV_gettable(), luaV_settable(), setnodevector(), TestSize(), and unexpectedEOZ().

void luaG_typeerror ( lua_State L,
const TObject o,
const char *  opname 
)

Definition at line 560 of file ldebug.c.

References lua_State::base, lua_State::ci, getobjname(), isinstack(), luaG_runerror(), luaT_typenames, and ttype.

Referenced by luaG_aritherror(), luaG_concaterror(), luaV_getnotable(), luaV_settable(), and tryfuncTM().


Generated on Fri Oct 12 08:44:55 2007 for rpm by  doxygen 1.5.2