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 CLOSEPROTECT   (-2)
 
#define isintwups(L)   (L->twups != L)
 
#define MAXMISS   10
 
#define MAXUPVAL   255
 
#define NOCLOSINGMETH   (-1)
 
#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 int luaF_close (lua_State *L, StkId level, int status)
 
LUAI_FUNC UpValluaF_findupval (lua_State *L, StkId level)
 
LUAI_FUNC void luaF_freeproto (lua_State *L, Proto *f)
 
LUAI_FUNC const 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

#define CLOSEPROTECT   (-2)

Definition at line 53 of file lfunc.h.

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

Definition at line 22 of file lfunc.h.

#define MAXMISS   10

Definition at line 42 of file lfunc.h.

#define MAXUPVAL   255

Definition at line 29 of file lfunc.h.

#define NOCLOSINGMETH   (-1)

Definition at line 50 of file lfunc.h.

#define sizeCclosure (   n)
Value:
(cast_int(offsetof(CClosure, upvalue)) + \
cast_int(sizeof(TValue)) * (n))
Definition: lobject.h:63
#define cast_int(i)
Definition: llimits.h:128

Definition at line 14 of file lfunc.h.

#define sizeLclosure (   n)
Value:
(cast_int(offsetof(LClosure, upvals)) + \
cast_int(sizeof(TValue *)) * (n))
Definition: lobject.h:63
#define cast_int(i)
Definition: llimits.h:128

Definition at line 17 of file lfunc.h.

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

Definition at line 32 of file lfunc.h.

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

Definition at line 35 of file lfunc.h.

Function Documentation

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

Definition at line 223 of file lfunc.c.

LUAI_FUNC UpVal* luaF_findupval ( lua_State L,
StkId  level 
)

Definition at line 88 of file lfunc.c.

LUAI_FUNC void luaF_freeproto ( lua_State L,
Proto f 
)

Definition at line 273 of file lfunc.c.

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

Definition at line 289 of file lfunc.c.

LUAI_FUNC void luaF_initupvals ( lua_State L,
LClosure cl 
)

Definition at line 48 of file lfunc.c.

LUAI_FUNC CClosure* luaF_newCclosure ( lua_State L,
int  nupvals 
)

Definition at line 27 of file lfunc.c.

LUAI_FUNC LClosure* luaF_newLclosure ( lua_State L,
int  nupvals 
)

Definition at line 35 of file lfunc.c.

LUAI_FUNC Proto* luaF_newproto ( lua_State L)

Definition at line 246 of file lfunc.c.

LUAI_FUNC void luaF_newtbcupval ( lua_State L,
StkId  level 
)

Definition at line 194 of file lfunc.c.

LUAI_FUNC void luaF_unlinkupval ( UpVal uv)

Definition at line 215 of file lfunc.c.



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