The Battle for Wesnoth  1.15.2+dev
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.


#define luaD_checkstackaux(L, n, pre, pos)
#define luaD_checkstack(L, n)   luaD_checkstackaux(L,n,(void)0,(void)0)
#define savestack(L, p)   ((char *)(p) - (char *)L->stack)
#define restorestack(L, n)   ((TValue *)((char *)L->stack + (n)))


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


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)
LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults)
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, CallInfo *ci, StkId firstResult, int nres)
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 void luaD_inctop (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

◆ luaD_checkstack

#define luaD_checkstack (   L,
)    luaD_checkstackaux(L,n,(void)0,(void)0)

Definition at line 28 of file ldo.h.

Referenced by luaD_hook(), luaD_inctop(), luaO_pushvfstring(), and luaV_execute().

◆ luaD_checkstackaux

#define luaD_checkstackaux (   L,
if (L->stack_last - L->top <= (n)) \
{ pre; luaD_growstack(L, n); pos; } else { condmovestack(L,pre,pos); }
#define condmovestack(L, pre, pos)
Definition: llimits.h:309
LUAI_FUNC void luaD_growstack(lua_State *L, int n)
Definition: ldo.cpp:191
static map_location::DIRECTION n

Definition at line 23 of file ldo.h.

◆ restorestack

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

◆ savestack

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

Typedef Documentation

◆ Pfunc

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

Definition at line 37 of file ldo.h.

Function Documentation

◆ luaD_call()

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

◆ luaD_callnoyield()

LUAI_FUNC void luaD_callnoyield ( lua_State L,
StkId  func,
int  nResults 

Definition at line 507 of file ldo.cpp.

References luaD_call(), and lua_State::nny.

Referenced by dothecall(), f_call(), lua_callk(), luaG_errormsg(), and luaT_callTM().

◆ luaD_growstack()

LUAI_FUNC void luaD_growstack ( lua_State L,
int  n 

◆ luaD_hook()

LUAI_FUNC void luaD_hook ( lua_State L,
int  event,
int  line 

◆ luaD_inctop()

LUAI_FUNC void luaD_inctop ( lua_State L)

Definition at line 240 of file ldo.cpp.

References luaD_checkstack, and lua_State::top.

Referenced by luaO_pushvfstring(), luaU_undump(), luaY_parser(), and pushstr().

◆ luaD_pcall()

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

◆ luaD_poscall()

LUAI_FUNC int luaD_poscall ( lua_State L,
CallInfo ci,
StkId  firstResult,
int  nres 

◆ luaD_precall()

LUAI_FUNC int luaD_precall ( lua_State L,
StkId  func,
int  nresults 

◆ luaD_protectedparser()

LUAI_FUNC int luaD_protectedparser ( lua_State L,
ZIO z,
const char *  name,
const char *  mode 

◆ luaD_rawrunprotected()

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

◆ luaD_reallocstack()

LUAI_FUNC void luaD_reallocstack ( lua_State L,
int  newsize 

◆ luaD_shrinkstack()

LUAI_FUNC void luaD_shrinkstack ( lua_State L)

◆ luaD_throw()

LUAI_FUNC l_noret luaD_throw ( lua_State L,
int  errcode