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 checkstackGC(L, fsize)   luaD_checkstackaux(L, (fsize), luaC_checkGC(L), (void)0)
 
#define checkstackGCp(L, n, p)
 
#define luaD_checkstack(L, n)   luaD_checkstackaux(L,n,(void)0,(void)0)
 
#define luaD_checkstackaux(L, n, pre, pos)
 
#define restorestack(L, n)   ((StkId)((char *)L->stack + (n)))
 
#define savestack(L, p)   ((char *)(p) - (char *)L->stack)
 

Typedefs

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

Functions

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_growstack (lua_State *L, int n, int raiseerror)
 
LUAI_FUNC void luaD_hook (lua_State *L, int event, int line, int fTransfer, int nTransfer)
 
LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci)
 
LUAI_FUNC void luaD_inctop (lua_State *L)
 
LUAI_FUNC int luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t oldtop, ptrdiff_t ef)
 
LUAI_FUNC void luaD_poscall (lua_State *L, CallInfo *ci, int nres)
 
LUAI_FUNC void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int n)
 
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 int luaD_reallocstack (lua_State *L, int newsize, int raiseerror)
 
LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop)
 
LUAI_FUNC void luaD_shrinkstack (lua_State *L)
 
LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode)
 
LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func)
 

Macro Definition Documentation

#define checkstackGC (   L,
  fsize 
)    luaD_checkstackaux(L, (fsize), luaC_checkGC(L), (void)0)

Definition at line 48 of file ldo.h.

#define checkstackGCp (   L,
  n,
 
)
Value:
ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \
luaC_checkGC(L), /* stack grow uses memory */ \
p = restorestack(L, t__)) /* 'pos' part: restore 'p' */
#define restorestack(L, n)
Definition: ldo.h:36
#define luaD_checkstackaux(L, n, pre, pos)
Definition: ldo.h:25
#define savestack(L, p)
Definition: ldo.h:35
#define luaC_checkGC(L)
Definition: lgc.h:162

Definition at line 40 of file ldo.h.

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

Definition at line 31 of file ldo.h.

#define luaD_checkstackaux (   L,
  n,
  pre,
  pos 
)
Value:
if (L->stack_last - L->top <= (n)) \
{ pre; luaD_growstack(L, n, 1); pos; } \
else { condmovestack(L,pre,pos); }
#define condmovestack(L, pre, pos)
Definition: llimits.h:343
LUAI_FUNC int luaD_growstack(lua_State *L, int n, int raiseerror)
Definition: ldo.c:209

Definition at line 25 of file ldo.h.

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

Definition at line 36 of file ldo.h.

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

Definition at line 35 of file ldo.h.

Typedef Documentation

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

Definition at line 53 of file ldo.h.

Function Documentation

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

Definition at line 457 of file ldo.c.

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

Definition at line 519 of file ldo.c.

LUAI_FUNC int luaD_growstack ( lua_State L,
int  n,
int  raiseerror 
)

Definition at line 209 of file ldo.c.

LUAI_FUNC void luaD_hook ( lua_State L,
int  event,
int  line,
int  fTransfer,
int  nTransfer 
)

Definition at line 274 of file ldo.c.

LUAI_FUNC void luaD_hookcall ( lua_State L,
CallInfo ci 
)

Definition at line 313 of file ldo.c.

LUAI_FUNC void luaD_inctop ( lua_State L)

Definition at line 261 of file ldo.c.

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

Definition at line 742 of file ldo.c.

LUAI_FUNC void luaD_poscall ( lua_State L,
CallInfo ci,
int  nres 
)

Definition at line 414 of file ldo.c.

LUAI_FUNC void luaD_pretailcall ( lua_State L,
CallInfo ci,
StkId  func,
int  n 
)

Definition at line 432 of file ldo.c.

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

Definition at line 803 of file ldo.c.

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

Definition at line 141 of file ldo.c.

LUAI_FUNC int luaD_reallocstack ( lua_State L,
int  newsize,
int  raiseerror 
)

Definition at line 185 of file ldo.c.

LUAI_FUNC void luaD_seterrorobj ( lua_State L,
int  errcode,
StkId  oldtop 
)

Definition at line 91 of file ldo.c.

LUAI_FUNC void luaD_shrinkstack ( lua_State L)

Definition at line 246 of file ldo.c.

LUAI_FUNC l_noret luaD_throw ( lua_State L,
int  errcode 
)

Definition at line 114 of file ldo.c.

LUAI_FUNC void luaD_tryfuncTM ( lua_State L,
StkId  func 
)

Definition at line 354 of file ldo.c.



plotjuggler
Author(s): Davide Faconti
autogenerated on Sun Dec 6 2020 04:02:48