lua5.4
宏定义 | 类型定义 | 函数
ldo.h 文件参考
#include "lobject.h"
#include "lstate.h"
#include "lzio.h"
ldo.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

宏定义

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

类型定义

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

函数

LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop)
 
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, int fTransfer, int nTransfer)
 
LUAI_FUNC void luaD_hookcall (lua_State *L, CallInfo *ci)
 
LUAI_FUNC void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int n)
 
LUAI_FUNC CallInfoluaD_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 void luaD_tryfuncTM (lua_State *L, StkId func)
 
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 int luaD_reallocstack (lua_State *L, int newsize, int raiseerror)
 
LUAI_FUNC int luaD_growstack (lua_State *L, int n, int raiseerror)
 
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)
 

宏定义说明

◆ checkstackGC

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

◆ checkstackGCp

#define checkstackGCp (   L,
  n,
 
)
值:
ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \
luaC_checkGC(L), /* stack grow uses memory */ \
p = restorestack(L, t__)) /* 'pos' part: restore 'p' */

◆ luaD_checkstack

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

◆ luaD_checkstackaux

#define luaD_checkstackaux (   L,
  n,
  pre,
  pos 
)
值:
if (L->stack_last - L->top <= (n)) \
{ pre; luaD_growstack(L, n, 1); pos; } \
else { condmovestack(L,pre,pos); }

◆ restorestack

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

◆ savestack

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

类型定义说明

◆ Pfunc

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

函数说明

◆ 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 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_growstack()

LUAI_FUNC int luaD_growstack ( lua_State L,
int  n,
int  raiseerror 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_hook()

LUAI_FUNC void luaD_hook ( lua_State L,
int  event,
int  line,
int  fTransfer,
int  nTransfer 
)
这是这个函数的调用关系图:

◆ luaD_hookcall()

LUAI_FUNC void luaD_hookcall ( lua_State L,
CallInfo ci 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_inctop()

LUAI_FUNC void luaD_inctop ( lua_State L)
这是这个函数的调用关系图:

◆ luaD_pcall()

LUAI_FUNC int luaD_pcall ( lua_State L,
Pfunc  func,
void *  u,
ptrdiff_t  oldtop,
ptrdiff_t  ef 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_poscall()

LUAI_FUNC void luaD_poscall ( lua_State L,
CallInfo ci,
int  nres 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_precall()

LUAI_FUNC CallInfo* luaD_precall ( lua_State L,
StkId  func,
int  nResults 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_pretailcall()

LUAI_FUNC void luaD_pretailcall ( lua_State L,
CallInfo ci,
StkId  func,
int  n 
)
这是这个函数的调用关系图:

◆ 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 int luaD_reallocstack ( lua_State L,
int  newsize,
int  raiseerror 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_seterrorobj()

LUAI_FUNC void luaD_seterrorobj ( lua_State L,
int  errcode,
StkId  oldtop 
)
这是这个函数的调用关系图:

◆ luaD_shrinkstack()

LUAI_FUNC void luaD_shrinkstack ( lua_State L)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_throw()

LUAI_FUNC l_noret luaD_throw ( lua_State L,
int  errcode 
)
函数调用图:
这是这个函数的调用关系图:

◆ luaD_tryfuncTM()

LUAI_FUNC void luaD_tryfuncTM ( lua_State L,
StkId  func 
)
函数调用图:
这是这个函数的调用关系图:
restorestack
#define restorestack(L, n)
Definition: ldo.h:36
luaD_growstack
LUAI_FUNC int luaD_growstack(lua_State *L, int n, int raiseerror)
Definition: ldo.c:207
luaD_checkstackaux
#define luaD_checkstackaux(L, n, pre, pos)
Definition: ldo.h:25
savestack
#define savestack(L, p)
Definition: ldo.h:35
condmovestack
#define condmovestack(L, pre, pos)
Definition: llimits.h:355