The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros | Typedefs | Functions
ldo.h File Reference
#include "lobject.h"
#include "lstate.h"
#include "lzio.h"
Include dependency graph for ldo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define luaD_checkstack(L, n)
 
#define incr_top(L)   {L->top++; luaD_checkstack(L,0);}
 
#define savestack(L, p)   ((char *)(p) - (char *)L->stack)
 
#define restorestack(L, n)   ((TValue *)((char *)L->stack + (n)))
 

Typedefs

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

Functions

LUAI_FUNC int luaD_protectedparser (lua_State *L, ZIO *z, const char *name, const char *mode)
 
LUAI_FUNC void luaD_hook (lua_State *L, int event, int line)
 
LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults)
 
LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults, int allowyield)
 
LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t oldtop, ptrdiff_t ef)
 
LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult)
 
LUAI_FUNC void luaD_reallocstack (lua_State *L, int newsize)
 
LUAI_FUNC void luaD_growstack (lua_State *L, int n)
 
LUAI_FUNC void luaD_shrinkstack (lua_State *L)
 
LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode)
 
LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud)
 

Macro Definition Documentation

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

Definition at line 19 of file ldo.h.

Referenced by luaU_undump(), luaY_parser(), open_func(), and tryfuncTM().

#define luaD_checkstack (   L,
  n 
)
Value:
if (L->stack_last - L->top <= (n)) \
#define condmovestack(L)
Definition: llimits.h:295
GLclampd n
Definition: glew.h:5903
LUAI_FUNC void luaD_growstack(lua_State *L, int n)
Definition: ldo.cpp:197

Definition at line 15 of file ldo.h.

Referenced by adjust_varargs(), luaD_hook(), luaD_precall(), luaO_pushvfstring(), and luaV_execute().

#define restorestack (   L,
  n 
)    ((TValue *)((char *)L->stack + (n)))
#define savestack (   L,
  p 
)    ((char *)(p) - (char *)L->stack)

Typedef Documentation

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

Definition at line 26 of file ldo.h.

Function Documentation

LUAI_FUNC void luaD_call ( lua_State L,
StkId  func,
int  nResults,
int  allowyield 
)
LUAI_FUNC void luaD_growstack ( lua_State L,
int  n 
)
LUAI_FUNC void luaD_hook ( lua_State L,
int  event,
int  line 
)
LUAI_FUNC int luaD_pcall ( lua_State L,
Pfunc  func,
void u,
ptrdiff_t  oldtop,
ptrdiff_t  ef 
)
LUAI_FUNC int luaD_poscall ( lua_State L,
StkId  firstResult 
)
LUAI_FUNC int luaD_precall ( lua_State L,
StkId  func,
int  nresults 
)
LUAI_FUNC int luaD_protectedparser ( lua_State L,
ZIO z,
const char *  name,
const char *  mode 
)
LUAI_FUNC int luaD_rawrunprotected ( lua_State L,
Pfunc  f,
void ud 
)
LUAI_FUNC void luaD_reallocstack ( lua_State L,
int  newsize 
)
LUAI_FUNC void luaD_shrinkstack ( lua_State L)
LUAI_FUNC l_noret luaD_throw ( lua_State L,
int  errcode 
)