sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
ldo.h File Reference
#include "llimits.h"
#include "lobject.h"
#include "lstate.h"
#include "lzio.h"

Go to the source code of this file.

Macros

#define luaD_checkstackaux(L, n, pre, pos)
#define luaD_checkstack(L, n)
#define savestack(L, pt)
#define restorestack(L, n)
#define checkstackp(L, n, p)
#define checkstackGCp(L, n, p)
#define checkstackGC(L, fsize)

Typedefs

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

Functions

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 int luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int narg1, int delta)
LUAI_FUNC CallInfo * 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 StkId luaD_tryfuncTM (lua_State *L, StkId func)
LUAI_FUNC int luaD_closeprotected (lua_State *L, ptrdiff_t level, int status)
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)

Macro Definition Documentation

◆ checkstackGC

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

Definition at line 60 of file ldo.h.

◆ checkstackGCp

#define checkstackGCp ( L,
n,
p )
Value:
luaD_checkstackaux(L, n, \
ptrdiff_t t__ = savestack(L, p); \
luaC_checkGC(L), \
p = restorestack(L, t__))

Definition at line 52 of file ldo.h.

◆ checkstackp

#define checkstackp ( L,
n,
p )
Value:
luaD_checkstackaux(L, n, \
ptrdiff_t t__ = savestack(L, p), \
p = restorestack(L, t__))

Definition at line 45 of file ldo.h.

◆ luaD_checkstack

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

Definition at line 36 of file ldo.h.

◆ luaD_checkstackaux

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

Definition at line 30 of file ldo.h.

◆ restorestack

#define restorestack ( L,
n )
Value:
cast(StkId, cast_charp(L->stack.p) + (n))

Definition at line 41 of file ldo.h.

◆ savestack

#define savestack ( L,
pt )
Value:
(cast_charp(pt) - cast_charp(L->stack.p))

Definition at line 40 of file ldo.h.

Typedef Documentation

◆ Pfunc

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

Definition at line 65 of file ldo.h.

Function Documentation

◆ luaD_call()

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

Definition at line 646 of file ldo.c.

◆ luaD_callnoyield()

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

Definition at line 654 of file ldo.c.

◆ luaD_closeprotected()

LUAI_FUNC int luaD_closeprotected ( lua_State * L,
ptrdiff_t level,
int status )

Definition at line 924 of file ldo.c.

◆ luaD_growstack()

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

Definition at line 242 of file ldo.c.

◆ luaD_hook()

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

Definition at line 328 of file ldo.c.

◆ luaD_hookcall()

LUAI_FUNC void luaD_hookcall ( lua_State * L,
CallInfo * ci )

Definition at line 369 of file ldo.c.

◆ luaD_inctop()

LUAI_FUNC void luaD_inctop ( lua_State * L)

Definition at line 315 of file ldo.c.

◆ luaD_pcall()

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

Definition at line 946 of file ldo.c.

◆ luaD_poscall()

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

Definition at line 485 of file ldo.c.

◆ luaD_precall()

LUAI_FUNC CallInfo * luaD_precall ( lua_State * L,
StkId func,
int nResults )

Definition at line 588 of file ldo.c.

◆ luaD_pretailcall()

LUAI_FUNC int luaD_pretailcall ( lua_State * L,
CallInfo * ci,
StkId func,
int narg1,
int delta )

Definition at line 543 of file ldo.c.

◆ luaD_protectedparser()

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

Definition at line 1005 of file ldo.c.

◆ luaD_rawrunprotected()

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

Definition at line 138 of file ldo.c.

◆ luaD_reallocstack()

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

Definition at line 212 of file ldo.c.

◆ luaD_seterrorobj()

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

Definition at line 91 of file ldo.c.

◆ luaD_shrinkstack()

LUAI_FUNC void luaD_shrinkstack ( lua_State * L)

Definition at line 300 of file ldo.c.

◆ luaD_throw()

LUAI_FUNC l_noret luaD_throw ( lua_State * L,
int errcode )

Definition at line 115 of file ldo.c.

◆ luaD_tryfuncTM()

LUAI_FUNC StkId luaD_tryfuncTM ( lua_State * L,
StkId func )

Definition at line 412 of file ldo.c.