Github User Fetcher 1.0.0
C Application with Server and GUI
|
Go to the source code of this file.
Macros | |
#define | luaD_checkstack(L, n) |
#define | incr_top(L) {luaD_checkstack(L,1); L->top++;} |
#define | savestack(L, p) ((char *)(p) - (char *)L->stack) |
#define | restorestack(L, n) ((TValue *)((char *)L->stack + (n))) |
#define | saveci(L, p) ((char *)(p) - (char *)L->base_ci) |
#define | restoreci(L, n) ((CallInfo *)((char *)L->base_ci + (n))) |
#define | PCRLUA 0 /* initiated a call to a Lua function */ |
#define | PCRC 1 /* did a call to a C function */ |
#define | PCRYIELD 2 /* C funtion yielded */ |
Typedefs | |
typedef void(* | Pfunc) (lua_State *L, void *ud) |
Functions | |
LUAI_FUNC int | luaD_protectedparser (lua_State *L, ZIO *z, const char *name) |
LUAI_FUNC void | luaD_callhook (lua_State *L, int event, int line) |
LUAI_FUNC int | luaD_precall (lua_State *L, StkId func, int nresults) |
LUAI_FUNC void | luaD_call (lua_State *L, StkId func, int nResults) |
LUAI_FUNC int | luaD_pcall (lua_State *L, Pfunc func, void *u, ptrdiff_t oldtop, ptrdiff_t ef) |
LUAI_FUNC int | luaD_poscall (lua_State *L, StkId firstResult) |
LUAI_FUNC void | luaD_reallocCI (lua_State *L, int newsize) |
LUAI_FUNC void | luaD_reallocstack (lua_State *L, int newsize) |
LUAI_FUNC void | luaD_growstack (lua_State *L, int n) |
LUAI_FUNC void | luaD_throw (lua_State *L, int errcode) |
LUAI_FUNC int | luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) |
LUAI_FUNC void | luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop) |
#define incr_top | ( | L | ) | {luaD_checkstack(L,1); L->top++;} |
Definition at line 22 of file lua-5.1.5/src/ldo.h.
Referenced by collectvalidlines(), combine(), f_parser(), LoadFunction(), lua_getinfo(), luaG_errormsg(), luaO_pushvfstring(), luaU_undump(), luaY_parser(), open_func(), open_func(), pushstr(), resume_error(), tryfuncTM(), and tryfuncTM().
#define luaD_checkstack | ( | L, | |
n ) |
Definition at line 16 of file lua-5.1.5/src/ldo.h.
Referenced by adjust_varargs(), adjust_varargs(), callTM(), callTMres(), lua_checkstack(), luaD_callhook(), luaD_hook(), luaD_hook(), luaD_inctop(), luaD_precall(), luaO_pushvfstring(), luaT_adjustvarargs(), luaV_execute(), and luaV_execute().
Definition at line 33 of file lua-5.1.5/src/ldo.h.
Referenced by luaD_precall(), and luaV_execute().
Definition at line 32 of file lua-5.1.5/src/ldo.h.
Referenced by luaD_call(), luaD_precall(), luaV_execute(), and resume().
#define PCRYIELD 2 /* C funtion yielded */ |
Definition at line 34 of file lua-5.1.5/src/ldo.h.
Referenced by luaD_precall().
#define restoreci | ( | L, | |
n ) ((CallInfo *)((char *)L->base_ci + (n))) |
Definition at line 28 of file lua-5.1.5/src/ldo.h.
Referenced by luaD_pcall().
#define restorestack | ( | L, | |
n ) ((TValue *)((char *)L->stack + (n))) |
Definition at line 25 of file lua-5.1.5/src/ldo.h.
Referenced by callrethooks(), callTM(), callTMres(), finishpcallk(), luaD_callhook(), luaD_closeprotected(), luaD_hook(), luaD_hook(), luaD_pcall(), luaD_poscall(), luaD_poscall(), luaD_precall(), luaF_close(), luaG_errormsg(), luaT_callTM(), luaT_callTMres(), moveresults(), recover(), recover(), resume(), resume(), swapextra(), swapextra(), tryfuncTM(), and tryfuncTM().
#define saveci | ( | L, | |
p ) ((char *)(p) - (char *)L->base_ci) |
Definition at line 27 of file lua-5.1.5/src/ldo.h.
Referenced by luaD_pcall().
#define savestack | ( | L, | |
p ) ((char *)(p) - (char *)L->stack) |
Definition at line 24 of file lua-5.1.5/src/ldo.h.
Referenced by callrethooks(), callTM(), callTMres(), GCTM(), GCTM(), GCTM(), lua_cpcall(), lua_pcall(), lua_pcallk(), lua_pcallk(), lua_yieldk(), lua_yieldk(), luaD_callhook(), luaD_hook(), luaD_hook(), luaD_poscall(), luaD_poscall(), luaD_precall(), luaD_protectedparser(), luaD_protectedparser(), luaF_close(), luaT_callTM(), luaT_callTMres(), moveresults(), swapextra(), swapextra(), tryfuncTM(), and tryfuncTM().
typedef void(* Pfunc) (lua_State *L, void *ud) |
Definition at line 38 of file lua-5.1.5/src/ldo.h.
Definition at line 370 of file lua-5.1.5/src/ldo.c.
Definition at line 181 of file lua-5.1.5/src/ldo.c.
References lua_State::allowhook, lua_State::base_ci, cast_int, lua_State::ci, lua_Debug::currentline, lua_Debug::event, lua_State::hook, lua_Debug::i_ci, lua_assert, LUA_HOOKTAILRET, lua_lock, LUA_MINSTACK, lua_unlock, luaD_checkstack, restorestack, savestack, lua_State::stack_last, CallInfo::top, and lua_State::top.
Referenced by callrethooks(), luaD_precall(), and traceexec().
Definition at line 161 of file lua-5.1.5/src/ldo.c.
Definition at line 456 of file lua-5.1.5/src/ldo.c.
Definition at line 343 of file lua-5.1.5/src/ldo.c.
Definition at line 265 of file lua-5.1.5/src/ldo.c.
Definition at line 509 of file lua-5.1.5/src/ldo.c.
References SParser::buff, lua_State::errfunc, f_parser(), luaD_pcall(), luaZ_freebuffer, luaZ_initbuffer, name, SParser::name, savestack, lua_State::top, and SParser::z.
Referenced by lua_load(), and lua_load().
Definition at line 111 of file lua-5.1.5/src/ldo.c.
Definition at line 152 of file lua-5.1.5/src/ldo.c.
References lua_State::base_ci, lua_State::ci, lua_State::end_ci, luaM_reallocvector, and lua_State::size_ci.
Referenced by checkstacksizes(), growCI(), and restore_stack_limit().
Definition at line 141 of file lua-5.1.5/src/ldo.c.
Definition at line 51 of file lua-5.1.5/src/ldo.c.
Definition at line 94 of file lua-5.1.5/src/ldo.c.