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

Go to the source code of this file.

Macros

#define sizeCclosure(n)
#define sizeLclosure(n)
#define isintwups(L)
#define MAXUPVAL   255
#define upisopen(up)
#define uplevel(up)
#define MAXMISS   10
#define CLOSEKTOP   (-1)

Functions

LUAI_FUNC Proto * luaF_newproto (lua_State *L)
LUAI_FUNC CClosure * luaF_newCclosure (lua_State *L, int nupvals)
LUAI_FUNC LClosure * luaF_newLclosure (lua_State *L, int nupvals)
LUAI_FUNC void luaF_initupvals (lua_State *L, LClosure *cl)
LUAI_FUNC UpVal * luaF_findupval (lua_State *L, StkId level)
LUAI_FUNC void luaF_newtbcupval (lua_State *L, StkId level)
LUAI_FUNC void luaF_closeupval (lua_State *L, StkId level)
LUAI_FUNC StkId luaF_close (lua_State *L, StkId level, int status, int yy)
LUAI_FUNC void luaF_unlinkupval (UpVal *uv)
LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f)
LUAI_FUNC const char * luaF_getlocalname (const Proto *func, int local_number, int pc)

Macro Definition Documentation

◆ CLOSEKTOP

#define CLOSEKTOP   (-1)

Definition at line 51 of file lfunc.h.

◆ isintwups

#define isintwups ( L)
Value:
(L->twups != L)

Definition at line 26 of file lfunc.h.

◆ MAXMISS

#define MAXMISS   10

Definition at line 46 of file lfunc.h.

◆ MAXUPVAL

#define MAXUPVAL   255

Definition at line 33 of file lfunc.h.

◆ sizeCclosure

#define sizeCclosure ( n)
Value:
(cast_int(offsetof(CClosure, upvalue)) + \
cast_int(sizeof(TValue)) * (n))

Definition at line 18 of file lfunc.h.

◆ sizeLclosure

#define sizeLclosure ( n)
Value:
(cast_int(offsetof(LClosure, upvals)) + \
cast_int(sizeof(TValue *)) * (n))

Definition at line 21 of file lfunc.h.

◆ upisopen

#define upisopen ( up)
Value:
((up)->v.p != &(up)->u.value)

Definition at line 36 of file lfunc.h.

◆ uplevel

#define uplevel ( up)
Value:
check_exp(upisopen(up), cast(StkId, (up)->v.p))

Definition at line 39 of file lfunc.h.

Function Documentation

◆ luaF_close()

LUAI_FUNC StkId luaF_close ( lua_State * L,
StkId level,
int status,
int yy )

Definition at line 227 of file lfunc.c.

◆ luaF_closeupval()

LUAI_FUNC void luaF_closeupval ( lua_State * L,
StkId level )

Definition at line 193 of file lfunc.c.

◆ luaF_findupval()

LUAI_FUNC UpVal * luaF_findupval ( lua_State * L,
StkId level )

Definition at line 87 of file lfunc.c.

◆ luaF_freeproto()

LUAI_FUNC void luaF_freeproto ( lua_State * L,
Proto * f )

Definition at line 267 of file lfunc.c.

◆ luaF_getlocalname()

LUAI_FUNC const char * luaF_getlocalname ( const Proto * func,
int local_number,
int pc )

Definition at line 283 of file lfunc.c.

◆ luaF_initupvals()

LUAI_FUNC void luaF_initupvals ( lua_State * L,
LClosure * cl )

Definition at line 48 of file lfunc.c.

◆ luaF_newCclosure()

LUAI_FUNC CClosure * luaF_newCclosure ( lua_State * L,
int nupvals )

Definition at line 27 of file lfunc.c.

◆ luaF_newLclosure()

LUAI_FUNC LClosure * luaF_newLclosure ( lua_State * L,
int nupvals )

Definition at line 35 of file lfunc.c.

◆ luaF_newproto()

LUAI_FUNC Proto * luaF_newproto ( lua_State * L)

Definition at line 240 of file lfunc.c.

◆ luaF_newtbcupval()

LUAI_FUNC void luaF_newtbcupval ( lua_State * L,
StkId level )

Definition at line 168 of file lfunc.c.

◆ luaF_unlinkupval()

LUAI_FUNC void luaF_unlinkupval ( UpVal * uv)

Definition at line 182 of file lfunc.c.