Macros | Functions
lfunc.h File Reference
#include "lobject.h"
Include dependency graph for lfunc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLOSEKTOP   (-1)
 
#define isintwups(L)   (L->twups != L)
 
#define MAXMISS   10
 
#define MAXUPVAL   255
 
#define sizeCclosure(n)
 
#define sizeLclosure(n)
 
#define upisopen(up)   ((up)->v != &(up)->u.value)
 
#define uplevel(up)   check_exp(upisopen(up), cast(StkId, (up)->v))
 

Functions

LUAI_FUNC void luaF_close (lua_State *L, StkId level, int status, int yy)
 
LUAI_FUNC void luaF_closeupval (lua_State *L, StkId level)
 
LUAI_FUNC UpValluaF_findupval (lua_State *L, StkId level)
 
LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f)
 
const LUAI_FUNC char * luaF_getlocalname (const Proto *func, int local_number, int pc)
 
LUAI_FUNC void luaF_initupvals (lua_State *L, LClosure *cl)
 
LUAI_FUNC CClosureluaF_newCclosure (lua_State *L, int nupvals)
 
LUAI_FUNC LClosureluaF_newLclosure (lua_State *L, int nupvals)
 
LUAI_FUNC ProtoluaF_newproto (lua_State *L)
 
LUAI_FUNC void luaF_newtbcupval (lua_State *L, StkId level)
 
LUAI_FUNC void luaF_unlinkupval (UpVal *uv)
 

Macro Definition Documentation

◆ CLOSEKTOP

#define CLOSEKTOP   (-1)

Definition at line 47 of file lfunc.h.

◆ isintwups

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

Definition at line 22 of file lfunc.h.

◆ MAXMISS

#define MAXMISS   10

Definition at line 42 of file lfunc.h.

◆ MAXUPVAL

#define MAXUPVAL   255

Definition at line 29 of file lfunc.h.

◆ sizeCclosure

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

Definition at line 14 of file lfunc.h.

◆ sizeLclosure

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

Definition at line 17 of file lfunc.h.

◆ upisopen

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

Definition at line 32 of file lfunc.h.

◆ uplevel

#define uplevel (   up)    check_exp(upisopen(up), cast(StkId, (up)->v))

Definition at line 35 of file lfunc.h.

Function Documentation

◆ luaF_close()

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

Definition at line 228 of file lfunc.c.

◆ luaF_closeupval()

LUAI_FUNC void luaF_closeupval ( lua_State L,
StkId  level 
)

Definition at line 194 of file lfunc.c.

◆ luaF_findupval()

LUAI_FUNC UpVal* luaF_findupval ( lua_State L,
StkId  level 
)

Definition at line 88 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()

const LUAI_FUNC 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 169 of file lfunc.c.

◆ luaF_unlinkupval()

LUAI_FUNC void luaF_unlinkupval ( UpVal uv)

Definition at line 183 of file lfunc.c.

LClosure
Definition: lobject.h:641
CClosure
Definition: lobject.h:634
TValue
Definition: lobject.h:65
cast_int
#define cast_int(i)
Definition: llimits.h:128


plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:49