Ardour  9.0-pre0-582-g084a23a80d
lfunc.h File Reference
#include "lobject.h"
Include dependency graph for lfunc.h:

Go to the source code of this file.

Classes

struct  UpVal
 

Macros

#define sizeCclosure(n)
 
#define sizeLclosure(n)
 
#define isintwups(L)   (L->twups != L)
 
#define MAXUPVAL   255
 
#define upisopen(up)   ((up)->v != &(up)->u.value)
 

Functions

ProtoluaF_newproto (lua_State *L)
 
CClosureluaF_newCclosure (lua_State *L, int nelems)
 
LClosureluaF_newLclosure (lua_State *L, int nelems)
 
void luaF_initupvals (lua_State *L, LClosure *cl)
 
UpValluaF_findupval (lua_State *L, StkId level)
 
void luaF_close (lua_State *L, StkId level)
 
void luaF_freeproto (lua_State *L, Proto *f)
 
const char * luaF_getlocalname (const Proto *func, int local_number, int pc)
 

Macro Definition Documentation

◆ isintwups

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

Definition at line 22 of file lfunc.h.

◆ MAXUPVAL

#define MAXUPVAL   255

Definition at line 29 of file lfunc.h.

◆ sizeCclosure

#define sizeCclosure (   n)
Value:
(cast(int, sizeof(CClosure)) + \
cast(int, sizeof(TValue)*((n)-1)))
#define cast(t, exp)
Definition: llimits.h:111

Definition at line 14 of file lfunc.h.

◆ sizeLclosure

#define sizeLclosure (   n)
Value:
(cast(int, sizeof(LClosure)) + \
cast(int, sizeof(TValue *)*((n)-1)))

Definition at line 17 of file lfunc.h.

◆ upisopen

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

Definition at line 47 of file lfunc.h.

Function Documentation

◆ luaF_close()

void luaF_close ( lua_State L,
StkId  level 
)

◆ luaF_findupval()

UpVal* luaF_findupval ( lua_State L,
StkId  level 
)

◆ luaF_freeproto()

void luaF_freeproto ( lua_State L,
Proto f 
)

◆ luaF_getlocalname()

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

◆ luaF_initupvals()

void luaF_initupvals ( lua_State L,
LClosure cl 
)

◆ luaF_newCclosure()

CClosure* luaF_newCclosure ( lua_State L,
int  nelems 
)

◆ luaF_newLclosure()

LClosure* luaF_newLclosure ( lua_State L,
int  nelems 
)

◆ luaF_newproto()

Proto* luaF_newproto ( lua_State L)