Go to the source code of this file.
Macros | |
#define | ltablib_c |
#define | LUA_LIB |
#define | aux_getn(L, n) (luaL_checktype(L, n, LUA_TTABLE), luaL_len(L, n)) |
Functions | |
static int | maxn (lua_State *L) |
static int | tinsert (lua_State *L) |
static int | tremove (lua_State *L) |
static void | addfield (lua_State *L, luaL_Buffer *b, int i) |
static int | tconcat (lua_State *L) |
static int | pack (lua_State *L) |
static int | unpack (lua_State *L) |
static void | set2 (lua_State *L, int i, int j) |
static int | sort_comp (lua_State *L, int a, int b) |
static void | auxsort (lua_State *L, int l, int u) |
static int | sort (lua_State *L) |
LUAMOD_API int | luaopen_table (lua_State *L) |
Variables | |
static const luaL_Reg | tab_funcs [] |
#define aux_getn | ( | L, | |
n | |||
) | (luaL_checktype(L, n, LUA_TTABLE), luaL_len(L, n)) |
Definition at line 18 of file ltablib.cpp.
#define ltablib_c |
Definition at line 9 of file ltablib.cpp.
#define LUA_LIB |
Definition at line 10 of file ltablib.cpp.
|
static |
Definition at line 83 of file ltablib.cpp.
References lua_isstring(), LUA_QL, lua_rawgeti(), luaL_addvalue(), luaL_error(), and luaL_typename.
Referenced by tconcat().
Definition at line 183 of file ltablib.cpp.
References i, lua_pop, lua_pushvalue(), lua_rawgeti(), luaL_error(), set2(), and sort_comp().
Referenced by sort().
LUAMOD_API int luaopen_table | ( | lua_State * | L | ) |
Definition at line 273 of file ltablib.cpp.
References lua_getfield(), lua_setglobal(), and luaL_newlib.
Referenced by lua_kernel_base::lua_kernel_base().
Definition at line 23 of file ltablib.cpp.
References lua_next(), lua_pop, lua_pushnil(), lua_pushnumber(), LUA_TNUMBER, lua_tonumber, LUA_TTABLE, lua_type(), and luaL_checktype().
Definition at line 118 of file ltablib.cpp.
References i, lua_createtable(), lua_gettop(), lua_pushinteger(), lua_pushvalue(), lua_rawseti(), lua_replace(), and lua_setfield().
Definition at line 246 of file ltablib.cpp.
References aux_getn, auxsort(), lua_isnoneornil, lua_settop(), LUA_TFUNCTION, luaL_checkstack(), and luaL_checktype().
Referenced by events::console_handler::do_choose_level(), ai::ai_default_rca::candidate_action_evaluation_loop::do_play_stage(), help::generate_ability_topics(), help::generate_contents_links(), help::generate_era_topics(), help::generate_faction_topics(), help::generate_unit_topics(), help::generate_weapon_special_topics(), CVideo::get_available_resolutions(), filesystem::get_files_in_dir(), battle_prediction_pane::get_hp_prob_vector(), get_languages(), unit::get_modification_advances(), savegame::get_saves_list(), help::make_unit_links_list(), gui::menu::max_items_onscreen(), help::parse_config_internal(), metrics::requests(), lobby_info::sort_users(), terrain_type::terrain_type(), and unit_weapons().
Definition at line 168 of file ltablib.cpp.
References lua_call, lua_compare(), lua_isnil, LUA_OPLT, lua_pop, lua_pushvalue(), and lua_toboolean().
Referenced by auxsort().
Definition at line 92 of file ltablib.cpp.
References addfield(), i, LUA_TTABLE, luaL_addlstring(), luaL_buffinit(), luaL_checkint, luaL_checktype(), luaL_len(), luaL_opt, luaL_optint, luaL_optlstring(), and luaL_pushresult().
Definition at line 40 of file ltablib.cpp.
References aux_getn, e, i, lua_gettop(), LUA_QL, lua_rawgeti(), lua_rawseti(), luaL_argcheck, luaL_checkint, luaL_error(), and pos.
Definition at line 67 of file ltablib.cpp.
References aux_getn, lua_pushnil(), lua_rawgeti(), lua_rawseti(), luaL_argcheck, luaL_optint, and pos.
Definition at line 135 of file ltablib.cpp.
References e, i, lua_checkstack(), lua_rawgeti(), LUA_TTABLE, luaL_checkint, luaL_checktype(), luaL_error(), luaL_len(), luaL_opt, and luaL_optint.