#include "lobject.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 | |
LUAI_FUNC Proto * | luaF_newproto (lua_State *L) |
LUAI_FUNC CClosure * | luaF_newCclosure (lua_State *L, int nelems) |
LUAI_FUNC LClosure * | luaF_newLclosure (lua_State *L, int nelems) |
LUAI_FUNC void | luaF_initupvals (lua_State *L, LClosure *cl) |
LUAI_FUNC UpVal * | luaF_findupval (lua_State *L, StkId level) |
LUAI_FUNC void | luaF_close (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) |
#define isintwups | ( | L | ) | (L->twups != L) |
Definition at line 22 of file lfunc.h.
Referenced by luaF_findupval(), and traversethread().
#define MAXUPVAL 255 |
Definition at line 29 of file lfunc.h.
Referenced by index2addr(), lua_pushcclosure(), and newupvalue().
#define sizeCclosure | ( | n | ) |
Definition at line 14 of file lfunc.h.
Referenced by freeobj(), luaF_newCclosure(), and traverseCclosure().
#define sizeLclosure | ( | n | ) |
Definition at line 17 of file lfunc.h.
Referenced by freeLclosure(), luaF_newLclosure(), and traverseLclosure().
#define upisopen | ( | up | ) | ((up)->v != &(up)->u.value) |
Definition at line 47 of file lfunc.h.
Referenced by lua_upvaluejoin(), luaC_upvalbarrier_(), luaC_upvdeccount(), luaF_close(), luaF_findupval(), and traverseLclosure().
Definition at line 83 of file lfunc.cpp.
References lua_assert, luaC_upvalbarrier, luaM_free, UpVal::open, lua_State::openupval, UpVal::refcount, setobj, UpVal::u, upisopen, UpVal::v, and UpVal::value.
Referenced by close_state(), luaD_pcall(), luaE_freethread(), luaV_execute(), and recover().
Definition at line 57 of file lfunc.cpp.
References G, isintwups, game_config::images::level, lua_assert, luaM_new, UpVal::open, lua_State::openupval, p, UpVal::refcount, lua_State::twups, UpVal::u, upisopen, and UpVal::v.
Referenced by pushclosure().
Definition at line 125 of file lfunc.cpp.
References Proto::code, Proto::k, Proto::lineinfo, Proto::locvars, luaM_free, luaM_freearray, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, and Proto::upvalues.
Referenced by freeobj().
Definition at line 140 of file lfunc.cpp.
References getstr, i, Proto::locvars, Proto::sizelocvars, LocVar::startpc, and LocVar::varname.
Referenced by findlocal(), getobjname(), and lua_getlocal().
Definition at line 45 of file lfunc.cpp.
References i, luaM_new, UpVal::refcount, setnilvalue, UpVal::u, LClosure::upvals, UpVal::v, and UpVal::value.
Referenced by f_parser().
Definition at line 25 of file lfunc.cpp.
References c, cast_byte, gco2ccl, LUA_TCCL, luaC_newobj(), and sizeCclosure.
Referenced by lua_pushcclosure().
Definition at line 33 of file lfunc.cpp.
References c, cast_byte, gco2lcl, LUA_TLCL, luaC_newobj(), n, LClosure::p, sizeLclosure, and LClosure::upvals.
Referenced by luaU_undump(), luaY_parser(), and pushclosure().
Definition at line 99 of file lfunc.cpp.
References Proto::cache, Proto::code, f, gco2p, Proto::is_vararg, Proto::k, Proto::lastlinedefined, Proto::linedefined, Proto::lineinfo, Proto::locvars, LUA_TPROTO, luaC_newobj(), Proto::maxstacksize, Proto::numparams, Proto::p, Proto::sizecode, Proto::sizek, Proto::sizelineinfo, Proto::sizelocvars, Proto::sizep, Proto::sizeupvalues, Proto::source, and Proto::upvalues.
Referenced by addprototype(), LoadProtos(), luaU_undump(), and luaY_parser().