lua/ldo.h File Reference

#include "lobject.h"
#include "lstate.h"
#include "lzio.h"

Go to the source code of this file.

Defines

#define condhardstacktests(x)   { /* empty */ }
#define luaD_checkstack(L, n)
#define incr_top(L)   {luaD_checkstack(L,1); L->top++;}
#define savestack(L, p)   ((char *)(p) - (char *)L->stack)
#define restorestack(L, n)   ((TObject *)((char *)L->stack + (n)))
#define saveci(L, p)   ((char *)(p) - (char *)L->base_ci)
#define restoreci(L, n)   ((CallInfo *)((char *)L->base_ci + (n)))

Typedefs

typedef void(* Pfunc )(lua_State *L, void *ud)

Functions

void luaD_resetprotection (lua_State *L)
int luaD_protectedparser (lua_State *L, ZIO *z, int bin)
void luaD_callhook (lua_State *L, int event, int line)
StkId luaD_precall (lua_State *L, StkId func)
void luaD_call (lua_State *L, StkId func, int nResults)
int luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t oldtop, ptrdiff_t ef)
void luaD_poscall (lua_State *L, int wanted, StkId firstResult)
void luaD_reallocCI (lua_State *L, int newsize)
void luaD_reallocstack (lua_State *L, int newsize)
void luaD_growstack (lua_State *L, int n)
void luaD_throw (lua_State *L, int errcode)
int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud)


Define Documentation

#define condhardstacktests (  )     { /* empty */ }

Definition at line 20 of file ldo.h.

Referenced by checkstacksizes(), and luaD_precall().

#define incr_top (  )     {luaD_checkstack(L,1); L->top++;}

#define luaD_checkstack ( L,
 ) 

Value:

if ((char *)L->stack_last - (char *)L->top <= (n)*(int)sizeof(TObject)) \
    luaD_growstack(L, n); \
  else condhardstacktests(luaD_reallocstack(L, L->stacksize));

Definition at line 26 of file ldo.h.

Referenced by adjust_varargs(), callTM(), callTMres(), lua_checkstack(), lua_pushupvalues(), luaD_callhook(), and luaD_precall().

#define restoreci ( L,
 )     ((CallInfo *)((char *)L->base_ci + (n)))

Definition at line 38 of file ldo.h.

Referenced by luaD_pcall().

#define restorestack ( L,
 )     ((TObject *)((char *)L->stack + (n)))

#define saveci ( L,
 )     ((char *)(p) - (char *)L->base_ci)

Definition at line 37 of file ldo.h.

Referenced by luaD_pcall().

#define savestack ( L,
 )     ((char *)(p) - (char *)L->stack)


Typedef Documentation

typedef void(* Pfunc)(lua_State *L, void *ud)

Definition at line 42 of file ldo.h.


Function Documentation

void luaD_call ( lua_State L,
StkId  func,
int  nResults 
)

void luaD_callhook ( lua_State L,
int  event,
int  line 
)

void luaD_growstack ( lua_State L,
int  n 
)

Definition at line 144 of file ldo.c.

References EXTRA_STACK, luaD_reallocstack(), and lua_State::stacksize.

int luaD_pcall ( lua_State L,
Pfunc  func,
void *  u,
ptrdiff_t  oldtop,
ptrdiff_t  ef 
)

void luaD_poscall ( lua_State L,
int  wanted,
StkId  firstResult 
)

StkId luaD_precall ( lua_State L,
StkId  func 
)

int luaD_protectedparser ( lua_State L,
ZIO z,
int  bin 
)

int luaD_rawrunprotected ( lua_State L,
Pfunc  f,
void *  ud 
)

void luaD_reallocCI ( lua_State L,
int  newsize 
)

void luaD_reallocstack ( lua_State L,
int  newsize 
)

void luaD_resetprotection ( lua_State L  ) 

void luaD_throw ( lua_State L,
int  errcode 
)


Generated on Fri Dec 12 13:02:11 2008 for rpm by  doxygen 1.5.6