#include <assert.h>#include <math.h>#include <stdarg.h>#include <string.h>#include "lua.h"#include "lapi.h"#include "ldebug.h"#include "ldo.h"#include "lfunc.h"#include "lgc.h"#include "lmem.h"#include "lobject.h"#include "lstate.h"#include "lstring.h"#include "ltable.h"#include "ltm.h"#include "lundump.h"#include "lvm.h"Go to the source code of this file.
Classes | |
| struct | CallS |
| struct | CCallS |
Defines | |
| #define | lapi_c |
| #define | LUA_CORE |
| #define | api_checknelems(L, n) api_check(L, (n) <= (L->top - L->base)) |
| #define | api_checkvalidindex(L, i) api_check(L, (i) != luaO_nilobject) |
| #define | api_incr_top(L) {api_check(L, L->top < L->ci->top); L->top++;} |
| #define | adjustresults(L, nres) { if (nres == LUA_MULTRET && L->top >= L->ci->top) L->ci->top = L->top; } |
| #define | checkresults(L, na, nr) api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na))) |
Functions | |
| static TValue * | index2adr (lua_State *L, int idx) |
| static Table * | getcurrenv (lua_State *L) |
| void | luaA_pushobject (lua_State *L, const TValue *o) |
| LUA_API int | lua_checkstack (lua_State *L, int size) |
| LUA_API void | lua_xmove (lua_State *from, lua_State *to, int n) |
| LUA_API lua_CFunction | lua_atpanic (lua_State *L, lua_CFunction panicf) |
| LUA_API lua_State * | lua_newthread (lua_State *L) |
| LUA_API int | lua_gettop (lua_State *L) |
| LUA_API void | lua_settop (lua_State *L, int idx) |
| LUA_API void | lua_remove (lua_State *L, int idx) |
| LUA_API void | lua_insert (lua_State *L, int idx) |
| LUA_API void | lua_replace (lua_State *L, int idx) |
| LUA_API void | lua_pushvalue (lua_State *L, int idx) |
| LUA_API int | lua_type (lua_State *L, int idx) |
| LUA_API const char * | lua_typename (lua_State *L, int t) |
| LUA_API int | lua_iscfunction (lua_State *L, int idx) |
| LUA_API int | lua_isnumber (lua_State *L, int idx) |
| LUA_API int | lua_isstring (lua_State *L, int idx) |
| LUA_API int | lua_isuserdata (lua_State *L, int idx) |
| LUA_API int | lua_rawequal (lua_State *L, int index1, int index2) |
| LUA_API int | lua_equal (lua_State *L, int index1, int index2) |
| LUA_API int | lua_lessthan (lua_State *L, int index1, int index2) |
| LUA_API lua_Number | lua_tonumber (lua_State *L, int idx) |
| LUA_API lua_Integer | lua_tointeger (lua_State *L, int idx) |
| LUA_API int | lua_toboolean (lua_State *L, int idx) |
| LUA_API const char * | lua_tolstring (lua_State *L, int idx, size_t *len) |
| LUA_API size_t | lua_objlen (lua_State *L, int idx) |
| LUA_API lua_CFunction | lua_tocfunction (lua_State *L, int idx) |
| LUA_API void * | lua_touserdata (lua_State *L, int idx) |
| LUA_API lua_State * | lua_tothread (lua_State *L, int idx) |
| LUA_API const void * | lua_topointer (lua_State *L, int idx) |
| LUA_API void | lua_pushnil (lua_State *L) |
| LUA_API void | lua_pushnumber (lua_State *L, lua_Number n) |
| LUA_API void | lua_pushinteger (lua_State *L, lua_Integer n) |
| LUA_API void | lua_pushlstring (lua_State *L, const char *s, size_t len) |
| LUA_API void | lua_pushstring (lua_State *L, const char *s) |
| LUA_API const char * | lua_pushvfstring (lua_State *L, const char *fmt, va_list argp) |
| LUA_API const char * | lua_pushfstring (lua_State *L, const char *fmt,...) |
| LUA_API void | lua_pushcclosure (lua_State *L, lua_CFunction fn, int n) |
| LUA_API void | lua_pushboolean (lua_State *L, int b) |
| LUA_API void | lua_pushlightuserdata (lua_State *L, void *p) |
| LUA_API int | lua_pushthread (lua_State *L) |
| LUA_API void | lua_gettable (lua_State *L, int idx) |
| LUA_API void | lua_getfield (lua_State *L, int idx, const char *k) |
| LUA_API void | lua_rawget (lua_State *L, int idx) |
| LUA_API void | lua_rawgeti (lua_State *L, int idx, int n) |
| LUA_API void | lua_createtable (lua_State *L, int narray, int nrec) |
| LUA_API int | lua_getmetatable (lua_State *L, int objindex) |
| LUA_API void | lua_getfenv (lua_State *L, int idx) |
| LUA_API void | lua_settable (lua_State *L, int idx) |
| LUA_API void | lua_setfield (lua_State *L, int idx, const char *k) |
| LUA_API void | lua_rawset (lua_State *L, int idx) |
| LUA_API void | lua_rawseti (lua_State *L, int idx, int n) |
| LUA_API int | lua_setmetatable (lua_State *L, int objindex) |
| LUA_API int | lua_setfenv (lua_State *L, int idx) |
| LUA_API void | lua_call (lua_State *L, int nargs, int nresults) |
| static void | f_call (lua_State *L, void *ud) |
| LUA_API int | lua_pcall (lua_State *L, int nargs, int nresults, int errfunc) |
| static void | f_Ccall (lua_State *L, void *ud) |
| LUA_API int | lua_cpcall (lua_State *L, lua_CFunction func, void *ud) |
| LUA_API int | lua_load (lua_State *L, lua_Reader reader, void *data, const char *chunkname) |
| LUA_API int | lua_dump (lua_State *L, lua_Writer writer, void *data) |
| LUA_API int | lua_status (lua_State *L) |
| LUA_API int | lua_gc (lua_State *L, int what, int data) |
| LUA_API int | lua_error (lua_State *L) |
| LUA_API int | lua_next (lua_State *L, int idx) |
| LUA_API void | lua_concat (lua_State *L, int n) |
| LUA_API lua_Alloc | lua_getallocf (lua_State *L, void **ud) |
| LUA_API void | lua_setallocf (lua_State *L, lua_Alloc f, void *ud) |
| LUA_API void * | lua_newuserdata (lua_State *L, size_t size) |
| static const char * | aux_upvalue (StkId fi, int n, TValue **val) |
| LUA_API const char * | lua_getupvalue (lua_State *L, int funcindex, int n) |
| LUA_API const char * | lua_setupvalue (lua_State *L, int funcindex, int n) |
Variables | |
| const char | lua_ident [] |
| #define adjustresults | ( | L, | |||
| nres | ) | { if (nres == LUA_MULTRET && L->top >= L->ci->top) L->ci->top = L->top; } |
Definition at line 41 of file lapi.cpp.
Referenced by lua_call(), lua_concat(), lua_dump(), lua_error(), lua_pcall(), lua_pushcclosure(), lua_rawset(), lua_rawseti(), lua_replace(), lua_setfenv(), lua_setfield(), lua_setmetatable(), lua_settable(), lua_setupvalue(), and lua_xmove().
| #define api_checkvalidindex | ( | L, | |||
| i | ) | api_check(L, (i) != luaO_nilobject) |
Definition at line 43 of file lapi.cpp.
Referenced by lua_getfenv(), lua_getfield(), lua_gettable(), lua_insert(), lua_pcall(), lua_remove(), lua_replace(), lua_setfenv(), lua_setfield(), lua_setmetatable(), and lua_settable().
| #define api_incr_top | ( | L | ) | {api_check(L, L->top < L->ci->top); L->top++;} |
Definition at line 45 of file lapi.cpp.
Referenced by f_Ccall(), lua_concat(), lua_createtable(), lua_getfenv(), lua_getfield(), lua_getmetatable(), lua_getupvalue(), lua_newthread(), lua_newuserdata(), lua_next(), lua_pushboolean(), lua_pushcclosure(), lua_pushinteger(), lua_pushlightuserdata(), lua_pushlstring(), lua_pushnil(), lua_pushnumber(), lua_pushthread(), lua_pushvalue(), lua_rawgeti(), and luaA_pushobject().
| #define checkresults | ( | L, | |||
| na, | |||||
| nr | ) | api_check(L, (nr) == LUA_MULTRET || (L->ci->top - L->top >= (nr) - (na))) |
Definition at line 1032 of file lapi.cpp.
References Closure::c, clvalue, getstr, Closure::l, NULL, LClosure::p, ttisfunction, LClosure::upvals, CClosure::upvalue, Proto::upvalues, and UpVal::v.
Referenced by lua_getupvalue(), and lua_setupvalue().
| static void f_call | ( | lua_State * | L, | |
| void * | ud | |||
| ) | [static] |
Definition at line 794 of file lapi.cpp.
References cast, CallS::func, luaD_call(), and CallS::nresults.
Referenced by lua_pcall().
| static void f_Ccall | ( | lua_State * | L, | |
| void * | ud | |||
| ) | [static] |
Definition at line 833 of file lapi.cpp.
References api_incr_top, Closure::c, cast, CClosure::f, CCallS::func, getcurrenv(), luaD_call(), luaF_newCclosure(), setclvalue, setpvalue, lua_State::top, and CCallS::ud.
Referenced by lua_cpcall().
Definition at line 79 of file lapi.cpp.
References lua_State::base_ci, Closure::c, lua_State::ci, curr_func, gt, and hvalue.
Referenced by f_Ccall(), lua_newuserdata(), and lua_pushcclosure().
Definition at line 49 of file lapi.cpp.
References api_check, lua_State::base, Closure::c, cast, curr_func, lua_State::env, gt, LUA_ENVIRONINDEX, LUA_GLOBALSINDEX, LUA_REGISTRYINDEX, luaO_nilobject, registry, sethvalue, lua_State::top, and CClosure::upvalue.
Referenced by lua_equal(), lua_getfenv(), lua_getfield(), lua_getmetatable(), lua_gettable(), lua_getupvalue(), lua_insert(), lua_iscfunction(), lua_isnumber(), lua_isuserdata(), lua_lessthan(), lua_next(), lua_objlen(), lua_pcall(), lua_pushvalue(), lua_rawequal(), lua_rawget(), lua_rawgeti(), lua_rawset(), lua_rawseti(), lua_remove(), lua_replace(), lua_setfenv(), lua_setfield(), lua_setmetatable(), lua_settable(), lua_setupvalue(), lua_toboolean(), lua_tocfunction(), lua_tointeger(), lua_tolstring(), lua_tonumber(), lua_topointer(), lua_tothread(), lua_touserdata(), and lua_type().
| LUA_API lua_CFunction lua_atpanic | ( | lua_State * | L, | |
| lua_CFunction | panicf | |||
| ) |
| LUA_API void lua_call | ( | lua_State * | L, | |
| int | nargs, | |||
| int | nresults | |||
| ) |
Definition at line 772 of file lapi.cpp.
Referenced by add_value(), dooptions(), foreach(), foreachi(), generic_reader(), hookf(), ll_require(), luaB_dofile(), luaB_print(), luaL_callmeta(), luaL_openlibs(), sort_comp(), and traceback().
| LUA_API int lua_checkstack | ( | lua_State * | L, | |
| int | size | |||
| ) |
| LUA_API void lua_concat | ( | lua_State * | L, | |
| int | n | |||
| ) |
Definition at line 983 of file lapi.cpp.
Referenced by adjuststack(), db_errorfb(), findfile(), ll_require(), loadline(), luaB_auxwrap(), luaB_error(), luaL_error(), and luaL_pushresult().
| LUA_API int lua_cpcall | ( | lua_State * | L, | |
| lua_CFunction | func, | |||
| void * | ud | |||
| ) |
| LUA_API void lua_createtable | ( | lua_State * | L, | |
| int | narray, | |||
| int | nrec | |||
| ) |
Definition at line 574 of file lapi.cpp.
Referenced by base_open(), createmetatable(), db_getinfo(), getargs(), gethooktable(), ll_seeall(), luaL_findtable(), luaopen_io(), luaopen_package(), and os_date().
| LUA_API int lua_dump | ( | lua_State * | L, | |
| lua_Writer | writer, | |||
| void * | data | |||
| ) |
| LUA_API int lua_equal | ( | lua_State * | L, | |
| int | index1, | |||
| int | index2 | |||
| ) |
| LUA_API int lua_error | ( | lua_State * | L | ) |
Definition at line 957 of file lapi.cpp.
Referenced by luaB_auxwrap(), luaB_dofile(), luaB_error(), and luaL_error().
| LUA_API int lua_gc | ( | lua_State * | L, | |
| int | what, | |||
| int | data | |||
| ) |
Definition at line 895 of file lapi.cpp.
Referenced by docall(), luaB_collectgarbage(), and pmain().
| LUA_API void lua_getfenv | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 612 of file lapi.cpp.
Referenced by aux_close(), db_getfenv(), and luaB_getfenv().
| LUA_API void lua_getfield | ( | lua_State * | L, | |
| int | idx, | |||
| const char * | k | |||
| ) |
Definition at line 540 of file lapi.cpp.
Referenced by aux_close(), findfile(), get_prompt(), getboolfield(), getfield(), io_type(), ll_module(), ll_require(), loader_preload(), luaI_openlib(), luaL_checkudata(), luaL_newmetatable(), luaopen_io(), luaopen_package(), luaopen_string(), and traceback().
| LUA_API int lua_getmetatable | ( | lua_State * | L, | |
| int | objindex | |||
| ) |
Definition at line 583 of file lapi.cpp.
Referenced by db_getmetatable(), io_type(), ll_seeall(), luaB_getmetatable(), luaB_newproxy(), luaL_checkudata(), and luaL_getmetafield().
| LUA_API void lua_gettable | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 530 of file lapi.cpp.
Referenced by add_value(), LUAUtil::getBoolFromTable(), LUAUtil::getIntFromTable(), LUAUtil::getNumberFromTable(), LUAUtil::getStringFromTable(), LUAUtil::getVectorFromStack(), and ll_register().
| LUA_API int lua_gettop | ( | lua_State * | L | ) |
Definition at line 155 of file lapi.cpp.
Referenced by auxresume(), db_errorfb(), docall(), dotty(), g_read(), g_write(), io_lines(), ll_module(), luaB_assert(), luaB_auxwrap(), luaB_coresume(), luaB_costatus(), luaB_dofile(), luaB_pcall(), luaB_print(), luaB_select(), luaB_xpcall(), luaB_yield(), luaL_loadfile(), math_max(), math_min(), str_char(), and tinsert().
| LUA_API const char* lua_getupvalue | ( | lua_State * | L, | |
| int | funcindex, | |||
| int | n | |||
| ) |
| LUA_API void lua_insert | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 187 of file lapi.cpp.
Referenced by auxupvalue(), docall(), dotty(), handle_script(), ll_loadlib(), load_aux(), loadline(), luaB_auxwrap(), luaB_coresume(), luaB_pcall(), luaB_setfenv(), luaB_xpcall(), luaI_openlib(), and luaL_addvalue().
| LUA_API int lua_iscfunction | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 250 of file lapi.cpp.
Referenced by auxupvalue(), luaB_cocreate(), luaB_getfenv(), and luaB_setfenv().
| LUA_API int lua_isnumber | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 256 of file lapi.cpp.
Referenced by db_errorfb(), db_getinfo(), getfield(), luaB_setfenv(), luaB_tonumber(), luaL_checkinteger(), and luaL_checknumber().
| LUA_API int lua_isstring | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 263 of file lapi.cpp.
Referenced by add_value(), db_errorfb(), generic_reader(), LUAUtil::getStringFromTable(), ll_require(), luaB_auxwrap(), luaB_error(), and tconcat().
| LUA_API int lua_lessthan | ( | lua_State * | L, | |
| int | index1, | |||
| int | index2 | |||
| ) |
| LUA_API int lua_load | ( | lua_State * | L, | |
| lua_Reader | reader, | |||
| void * | data, | |||
| const char * | chunkname | |||
| ) |
Definition at line 858 of file lapi.cpp.
Referenced by luaB_load(), luaL_loadbuffer(), and luaL_loadfile().
| LUA_API void* lua_newuserdata | ( | lua_State * | L, | |
| size_t | size | |||
| ) |
Definition at line 1018 of file lapi.cpp.
Referenced by ll_register(), luaB_newproxy(), and newfile().
| LUA_API int lua_next | ( | lua_State * | L, | |
| int | idx | |||
| ) |
| LUA_API size_t lua_objlen | ( | lua_State * | L, | |
| int | idx | |||
| ) |
| LUA_API int lua_pcall | ( | lua_State * | L, | |
| int | nargs, | |||
| int | nresults, | |||
| int | errfunc | |||
| ) |
Definition at line 801 of file lapi.cpp.
Referenced by db_debug(), docall(), dolibrary(), dotty(), LUAScript::endFunction(), luaB_pcall(), and luaB_xpcall().
| LUA_API void lua_pushboolean | ( | lua_State * | L, | |
| int | b | |||
| ) |
Definition at line 499 of file lapi.cpp.
Referenced by LUAScript::addBoolParameter(), addTank(), aux_lines(), db_setmetatable(), ll_require(), luaB_collectgarbage(), luaB_coresume(), luaB_newproxy(), luaB_pcall(), luaB_rawequal(), luaB_xpcall(), os_pushresult(), pushresult(), and setboolfield().
| LUA_API void lua_pushcclosure | ( | lua_State * | L, | |
| lua_CFunction | fn, | |||
| int | n | |||
| ) |
Definition at line 482 of file lapi.cpp.
Referenced by aux_lines(), auxopen(), base_open(), gmatch(), luaB_cowrap(), and luaI_openlib().
| LUA_API const char* lua_pushfstring | ( | lua_State * | L, | |
| const char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 469 of file lapi.cpp.
Referenced by db_errorfb(), db_getinfo(), dotty(), errfile(), fileerror(), findfile(), io_tostring(), ll_register(), loader_Croot(), loader_preload(), luaB_tostring(), luaL_checkoption(), luaL_loadfile(), luaL_typerror(), luaL_where(), mkfuncname(), os_pushresult(), pushline(), and pushresult().
| LUA_API void lua_pushinteger | ( | lua_State * | L, | |
| lua_Integer | n | |||
| ) |
Definition at line 433 of file lapi.cpp.
Referenced by db_gethook(), f_seek(), foreachi(), getn(), gmatch(), gmatch_aux(), hookf(), ipairsaux(), luaB_gcinfo(), luaB_ipairs(), luaB_select(), luaL_unref(), os_execute(), os_pushresult(), push_onecapture(), pushresult(), setfield(), settabsi(), str_byte(), str_find_aux(), str_gsub(), str_len(), and traceback().
| LUA_API void lua_pushlightuserdata | ( | lua_State * | L, | |
| void * | p | |||
| ) |
Definition at line 507 of file lapi.cpp.
Referenced by db_gethook(), db_sethook(), gethooktable(), hookf(), ll_require(), and LUAScript::LUAScript().
| LUA_API void lua_pushlstring | ( | lua_State * | L, | |
| const char * | s, | |||
| size_t | len | |||
| ) |
Definition at line 441 of file lapi.cpp.
Referenced by add_value(), emptybuffer(), loader_Croot(), lua_pushstring(), luaL_findtable(), modinit(), push_onecapture(), pushnexttemplate(), str_sub(), and test_eof().
| LUA_API void lua_pushnil | ( | lua_State * | L | ) |
Definition at line 417 of file lapi.cpp.
Referenced by db_getinfo(), db_getlocal(), db_getmetatable(), foreach(), g_read(), hookf(), io_type(), ll_loadlib(), load_aux(), lua_pushstring(), luaB_getmetatable(), luaB_next(), luaB_pairs(), luaB_tonumber(), maxn(), os_date(), os_pushresult(), os_time(), pushresult(), str_find_aux(), and tremove().
| LUA_API void lua_pushnumber | ( | lua_State * | L, | |
| lua_Number | n | |||
| ) |
Definition at line 425 of file lapi.cpp.
Referenced by LUAScript::addNumberParameter(), addTank(), LUAUtil::addVectorToStack(), luaB_collectgarbage(), luaB_tonumber(), math_abs(), math_acos(), math_ceil(), math_cos(), math_exp(), math_floor(), math_log(), math_log10(), math_max(), math_min(), math_pow(), math_sin(), math_sqrt(), math_tan(), maxn(), os_clock(), os_difftime(), os_time(), read_number(), s3d_get_arenaheight(), s3d_get_arenawidth(), s3d_get_height(), s3d_get_landscapeheight(), s3d_get_landscapewidth(), s3d_get_tanks(), s3d_random(), and LUAScript::setGlobal().
| LUA_API void lua_pushstring | ( | lua_State * | L, | |
| const char * | s | |||
| ) |
Definition at line 450 of file lapi.cpp.
Referenced by LUAScript::addStringParameter(), addTank(), LUAUtil::addVectorToStack(), auxupvalue(), db_gethook(), db_getlocal(), db_setlocal(), dolibrary(), getargs(), LUAUtil::getBoolFromTable(), LUAUtil::getIntFromTable(), LUAUtil::getNumberFromTable(), LUAUtil::getStringFromTable(), LUAUtil::getVectorFromStack(), hookf(), io_tostring(), ll_loadlib(), ll_require(), luaB_tostring(), luaB_type(), luaL_getmetafield(), luaL_openlibs(), modinit(), os_getenv(), os_setlocale(), os_tmpname(), pushline(), s3d_get_option(), s3d_get_tank(), setpath(), and settabss().
| LUA_API int lua_pushthread | ( | lua_State * | L | ) |
| LUA_API void lua_pushvalue | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 224 of file lapi.cpp.
Referenced by add_value(), aux_lines(), auxsort(), base_open(), createmeta(), createmetatable(), createstdfile(), db_getinfo(), db_getlocal(), db_getregistry(), db_sethook(), dooptions(), foreach(), foreachi(), g_iofile(), generic_reader(), getfunc(), gethooktable(), io_readline(), ll_module(), ll_register(), ll_require(), ll_seeall(), luaB_cocreate(), luaB_error(), luaB_getfenv(), luaB_ipairs(), luaB_newproxy(), luaB_pairs(), luaB_print(), luaB_setfenv(), luaB_tostring(), luaI_openlib(), luaL_callmeta(), luaL_findtable(), luaL_newmetatable(), luaopen_package(), modinit(), setfenv(), setn(), sort_comp(), str_format(), traceback(), and treatstackoption().
| LUA_API const char* lua_pushvfstring | ( | lua_State * | L, | |
| const char * | fmt, | |||
| va_list | argp | |||
| ) |
| LUA_API int lua_rawequal | ( | lua_State * | L, | |
| int | index1, | |||
| int | index2 | |||
| ) |
Definition at line 275 of file lapi.cpp.
Referenced by io_type(), luaB_rawequal(), and luaL_checkudata().
| LUA_API void lua_rawget | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 553 of file lapi.cpp.
Referenced by db_gethook(), gethooktable(), hookf(), luaB_newproxy(), luaB_rawget(), luaL_findtable(), and luaL_getmetafield().
| LUA_API void lua_rawgeti | ( | lua_State * | L, | |
| int | idx, | |||
| int | n | |||
| ) |
Definition at line 563 of file lapi.cpp.
Referenced by auxsort(), foreachi(), g_iofile(), getiofile(), io_close(), io_lines(), ipairsaux(), ll_require(), luaB_unpack(), luaL_ref(), luaL_unref(), tconcat(), tinsert(), and tremove().
| LUA_API void lua_rawset | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 667 of file lapi.cpp.
Referenced by db_sethook(), gethooktable(), luaB_newproxy(), and luaB_rawset().
| LUA_API void lua_rawseti | ( | lua_State * | L, | |
| int | idx, | |||
| int | n | |||
| ) |
Definition at line 680 of file lapi.cpp.
Referenced by createstdfile(), g_iofile(), getargs(), luaL_ref(), luaL_unref(), luaopen_package(), set2(), tinsert(), and tremove().
| LUA_API void lua_remove | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 176 of file lapi.cpp.
Referenced by db_gethook(), docall(), errfile(), findfile(), loadline(), luaI_openlib(), luaL_findtable(), luaL_getmetafield(), luaL_loadfile(), mkfuncname(), setpath(), and treatstackoption().
| LUA_API void lua_replace | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 199 of file lapi.cpp.
Referenced by generic_reader(), gmatch_aux(), luaB_xpcall(), luaopen_io(), and luaopen_package().
| LUA_API int lua_setfenv | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 730 of file lapi.cpp.
Referenced by db_setfenv(), luaB_setfenv(), luaopen_io(), and setfenv().
| LUA_API void lua_setfield | ( | lua_State * | L, | |
| int | idx, | |||
| const char * | k | |||
| ) |
Definition at line 653 of file lapi.cpp.
Referenced by auxopen(), base_open(), createmeta(), createmetatable(), createstdfile(), ll_module(), ll_require(), ll_seeall(), luaI_openlib(), luaL_newmetatable(), luaopen_io(), luaopen_package(), luaopen_string(), modinit(), setboolfield(), setfield(), setpath(), settabsi(), settabss(), and treatstackoption().
| LUA_API int lua_setmetatable | ( | lua_State * | L, | |
| int | objindex | |||
| ) |
Definition at line 693 of file lapi.cpp.
Referenced by base_open(), createmetatable(), db_setmetatable(), ll_register(), ll_seeall(), luaB_newproxy(), luaB_setmetatable(), and newfile().
| LUA_API void lua_settable | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 641 of file lapi.cpp.
Referenced by addTank(), LUAUtil::addVectorToStack(), ll_register(), luaL_findtable(), and s3d_get_tanks().
| LUA_API void lua_settop | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 160 of file lapi.cpp.
Referenced by db_debug(), db_setfenv(), db_sethook(), db_setlocal(), db_setmetatable(), dotty(), gmatch(), io_readline(), ll_require(), loadline(), luaB_error(), luaB_load(), luaB_newproxy(), luaB_next(), luaB_rawget(), luaB_rawset(), luaB_setmetatable(), luaB_xpcall(), luaL_loadfile(), os_time(), sort(), and str_dump().
| LUA_API const char* lua_setupvalue | ( | lua_State * | L, | |
| int | funcindex, | |||
| int | n | |||
| ) |
| LUA_API int lua_status | ( | lua_State * | L | ) |
| LUA_API int lua_toboolean | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 333 of file lapi.cpp.
Referenced by add_value(), getboolfield(), LUAUtil::getBoolFromTable(), io_readline(), ll_require(), luaB_assert(), luaB_newproxy(), luaB_tostring(), sort_comp(), and str_find_aux().
| LUA_API lua_CFunction lua_tocfunction | ( | lua_State * | L, | |
| int | idx | |||
| ) |
| LUA_API lua_Integer lua_tointeger | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 319 of file lapi.cpp.
Referenced by db_errorfb(), db_getinfo(), g_read(), getfield(), gmatch_aux(), luaL_checkinteger(), and luaL_ref().
| LUA_API const char* lua_tolstring | ( | lua_State * | L, | |
| int | idx, | |||
| size_t * | len | |||
| ) |
Definition at line 339 of file lapi.cpp.
Referenced by add_s(), generic_reader(), gmatch_aux(), incomplete(), luaL_addvalue(), and luaL_checklstring().
| LUA_API lua_Number lua_tonumber | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 309 of file lapi.cpp.
Referenced by g_write(), luaB_setfenv(), luaB_tonumber(), luaL_checknumber(), and maxn().
| LUA_API const void* lua_topointer | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 391 of file lapi.cpp.
Referenced by getthread(), luaB_auxwrap(), luaB_coresume(), and luaB_costatus().
| LUA_API void* lua_touserdata | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 381 of file lapi.cpp.
Referenced by getiofile(), getScript(), io_readline(), io_type(), ll_register(), ll_require(), lua_topointer(), luaL_checkudata(), and pmain().
| LUA_API int lua_type | ( | lua_State * | L, | |
| int | idx | |||
| ) |
Definition at line 238 of file lapi.cpp.
Referenced by add_value(), db_setmetatable(), g_read(), g_write(), lua_isstring(), luaB_select(), luaB_setmetatable(), luaB_tostring(), luaL_checkany(), luaL_checktype(), and maxn().
| LUA_API const char* lua_typename | ( | lua_State * | L, | |
| int | t | |||
| ) |
Definition at line 111 of file lapi.cpp.
Referenced by auxresume(), db_gethook(), db_getinfo(), db_getlocal(), db_sethook(), db_setlocal(), luaB_cocreate(), and treatstackoption().
| const char lua_ident[] |
Initial value:
"$Lua: " LUA_RELEASE " " LUA_COPYRIGHT " $\n" "$Authors: " LUA_AUTHORS " $\n" "$URL: www.lua.org $\n"
1.5.3