Go to the source code of this file.
Classes | |
struct | lua_Debug |
Macros | |
#define | LUA_VERSION_MAJOR "5" |
#define | LUA_VERSION_MINOR "3" |
#define | LUA_VERSION_NUM 503 |
#define | LUA_VERSION_RELEASE "6" |
#define | LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR |
#define | LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE |
#define | LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2020 Lua.org, PUC-Rio" |
#define | LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" |
#define | LUA_SIGNATURE "\x1bLua" |
#define | LUA_MULTRET (-1) |
#define | LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) |
#define | lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) |
#define | LUA_OK 0 |
#define | LUA_YIELD 1 |
#define | LUA_ERRRUN 2 |
#define | LUA_ERRSYNTAX 3 |
#define | LUA_ERRMEM 4 |
#define | LUA_ERRGCMM 5 |
#define | LUA_ERRERR 6 |
#define | LUA_TNONE (-1) |
#define | LUA_TNIL 0 |
#define | LUA_TBOOLEAN 1 |
#define | LUA_TLIGHTUSERDATA 2 |
#define | LUA_TNUMBER 3 |
#define | LUA_TSTRING 4 |
#define | LUA_TTABLE 5 |
#define | LUA_TFUNCTION 6 |
#define | LUA_TUSERDATA 7 |
#define | LUA_TTHREAD 8 |
#define | LUA_NUMTAGS 9 |
#define | LUA_MINSTACK 20 |
#define | LUA_RIDX_MAINTHREAD 1 |
#define | LUA_RIDX_GLOBALS 2 |
#define | LUA_RIDX_LAST LUA_RIDX_GLOBALS |
#define | LUA_OPADD 0 /* ORDER TM, ORDER OP */ |
#define | LUA_OPSUB 1 |
#define | LUA_OPMUL 2 |
#define | LUA_OPMOD 3 |
#define | LUA_OPPOW 4 |
#define | LUA_OPDIV 5 |
#define | LUA_OPIDIV 6 |
#define | LUA_OPBAND 7 |
#define | LUA_OPBOR 8 |
#define | LUA_OPBXOR 9 |
#define | LUA_OPSHL 10 |
#define | LUA_OPSHR 11 |
#define | LUA_OPUNM 12 |
#define | LUA_OPBNOT 13 |
#define | LUA_OPEQ 0 |
#define | LUA_OPLT 1 |
#define | LUA_OPLE 2 |
#define | lua_call(L, n, r) lua_callk(L, (n), (r), 0, NULL) |
#define | lua_pcall(L, n, r, f) lua_pcallk(L, (n), (r), (f), 0, NULL) |
#define | lua_yield(L, n) lua_yieldk(L, (n), 0, NULL) |
#define | LUA_GCSTOP 0 |
#define | LUA_GCRESTART 1 |
#define | LUA_GCCOLLECT 2 |
#define | LUA_GCCOUNT 3 |
#define | LUA_GCCOUNTB 4 |
#define | LUA_GCSTEP 5 |
#define | LUA_GCSETPAUSE 6 |
#define | LUA_GCSETSTEPMUL 7 |
#define | LUA_GCISRUNNING 9 |
#define | lua_getextraspace(L) ((void *)((char *)(L) - LUA_EXTRASPACE)) |
#define | lua_tonumber(L, i) lua_tonumberx(L,(i),NULL) |
#define | lua_tointeger(L, i) lua_tointegerx(L,(i),NULL) |
#define | lua_pop(L, n) lua_settop(L, -(n)-1) |
#define | lua_newtable(L) lua_createtable(L, 0, 0) |
#define | lua_register(L, n, f) (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) |
#define | lua_pushcfunction(L, f) lua_pushcclosure(L, (f), 0) |
#define | lua_isfunction(L, n) (lua_type(L, (n)) == LUA_TFUNCTION) |
#define | lua_istable(L, n) (lua_type(L, (n)) == LUA_TTABLE) |
#define | lua_islightuserdata(L, n) (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) |
#define | lua_isnil(L, n) (lua_type(L, (n)) == LUA_TNIL) |
#define | lua_isboolean(L, n) (lua_type(L, (n)) == LUA_TBOOLEAN) |
#define | lua_isthread(L, n) (lua_type(L, (n)) == LUA_TTHREAD) |
#define | lua_isnone(L, n) (lua_type(L, (n)) == LUA_TNONE) |
#define | lua_isnoneornil(L, n) (lua_type(L, (n)) <= 0) |
#define | lua_pushliteral(L, s) lua_pushstring(L, "" s) |
#define | lua_pushglobaltable(L) ((void)lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS)) |
#define | lua_tostring(L, i) lua_tolstring(L, (i), NULL) |
#define | lua_insert(L, idx) lua_rotate(L, (idx), 1) |
#define | lua_remove(L, idx) (lua_rotate(L, (idx), -1), lua_pop(L, 1)) |
#define | lua_replace(L, idx) (lua_copy(L, -1, (idx)), lua_pop(L, 1)) |
#define | LUA_HOOKCALL 0 |
#define | LUA_HOOKRET 1 |
#define | LUA_HOOKLINE 2 |
#define | LUA_HOOKCOUNT 3 |
#define | LUA_HOOKTAILCALL 4 |
#define | LUA_MASKCALL (1 << LUA_HOOKCALL) |
#define | LUA_MASKRET (1 << LUA_HOOKRET) |
#define | LUA_MASKLINE (1 << LUA_HOOKLINE) |
#define | LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) |
Typedefs | |
typedef struct lua_State | lua_State |
typedef LUA_NUMBER | lua_Number |
typedef LUA_INTEGER | lua_Integer |
typedef LUA_UNSIGNED | lua_Unsigned |
typedef LUA_KCONTEXT | lua_KContext |
typedef int(* | lua_CFunction) (lua_State *L) |
typedef int(* | lua_KFunction) (lua_State *L, int status, lua_KContext ctx) |
typedef const char *(* | lua_Reader) (lua_State *L, void *ud, size_t *sz) |
typedef int(* | lua_Writer) (lua_State *L, const void *p, size_t sz, void *ud) |
typedef void *(* | lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize) |
typedef struct lua_Debug | lua_Debug |
typedef void(* | lua_Hook) (lua_State *L, lua_Debug *ar) |
Variables | |
const char | lua_ident [] |
#define LUA_AUTHORS "R. Ierusalimschy, L. H. de Figueiredo, W. Celes" |
Definition at line 273 of file lua.h.
Referenced by add_value(), findloader(), generic_reader(), hookf(), lua_stringx::impl_str_index(), intf_describe_plugins(), lua_kernel_base::intf_dofile(), lua_kernel_base::intf_print(), intf_show_dialog(), lua_stringx::intf_str_format(), lua_stringx::intf_str_join(), lua_stringx::intf_str_join_map(), ll_require(), lua_kernel_base::load_package(), luaB_print(), luaL_callmeta(), luaL_requiref(), luaW_callwidgetcallback(), pairsmeta(), sort_comp(), and WIDGET_SETTER().
#define LUA_COPYRIGHT LUA_RELEASE " Copyright (C) 1994-2020 Lua.org, PUC-Rio" |
#define LUA_ERRERR 6 |
Definition at line 52 of file lua.h.
Referenced by luaD_growstack(), lua_kernel_base::protected_call(), application_lua_kernel::thread::run_script(), seterrorobj(), and stackerror().
#define LUA_ERRGCMM 5 |
Definition at line 51 of file lua.h.
Referenced by GCTM(), application_lua_kernel::load_script_from_string(), lua_kernel_base::load_string(), and lua_kernel_base::protected_call().
#define LUA_ERRMEM 4 |
Definition at line 50 of file lua.h.
Referenced by application_lua_kernel::load_script_from_string(), lua_kernel_base::load_string(), luaH_resize(), luaM_realloc_(), lua_kernel_base::protected_call(), and seterrorobj().
#define LUA_ERRRUN 2 |
Definition at line 48 of file lua.h.
Referenced by GCTM(), lua_resume(), luaG_errormsg(), lua_kernel_base::protected_call(), resume_error(), and application_lua_kernel::thread::run_script().
#define LUA_ERRSYNTAX 3 |
Definition at line 49 of file lua.h.
Referenced by checkmode(), error(), lexerror(), application_lua_kernel::load_script_from_string(), lua_kernel_base::load_string(), and application_lua_kernel::thread::run_script().
#define LUA_GCCOLLECT 2 |
Definition at line 303 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCCOUNT 3 |
Definition at line 304 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCCOUNTB 4 |
Definition at line 305 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCISRUNNING 9 |
Definition at line 309 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCRESTART 1 |
Definition at line 302 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCSETPAUSE 6 |
Definition at line 307 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCSETSTEPMUL 7 |
Definition at line 308 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCSTEP 5 |
Definition at line 306 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define LUA_GCSTOP 0 |
Definition at line 301 of file lua.h.
Referenced by lua_gc(), and luaB_collectgarbage().
#define lua_getextraspace | ( | L | ) | ((void *)((char *)(L) - LUA_EXTRASPACE)) |
Definition at line 338 of file lua.h.
Referenced by lua_kernel_base::get_lua_kernel_base_ptr(), and lua_newthread().
#define LUA_HOOKCALL 0 |
Definition at line 401 of file lua.h.
Referenced by callhook(), and luaD_precall().
#define LUA_HOOKCOUNT 3 |
Definition at line 404 of file lua.h.
Referenced by luaG_traceexec().
#define LUA_HOOKLINE 2 |
Definition at line 403 of file lua.h.
Referenced by luaG_traceexec().
#define LUA_HOOKRET 1 |
Definition at line 402 of file lua.h.
Referenced by luaD_poscall().
#define LUA_HOOKTAILCALL 4 |
Definition at line 405 of file lua.h.
Referenced by callhook().
#define lua_insert | ( | L, | |
idx | |||
) | lua_rotate(L, (idx), 1) |
Definition at line 368 of file lua.h.
Referenced by auxupvalue(), findfield(), intf_load(), lua_stringx::intf_str_format(), ll_loadlib(), ll_require(), ll_searchpath(), load_aux(), luaB_auxwrap(), luaB_coresume(), luaB_pcall(), luaL_addvalue(), luaL_tolstring(), luaW_pcall_internal(), pack(), lua_cpp::push_closure(), game_lua_kernel::run_filter(), and lua_kernel_base::throwing_run().
#define lua_isboolean | ( | L, | |
n | |||
) | (lua_type(L, (n)) == LUA_TBOOLEAN) |
Definition at line 355 of file lua.h.
Referenced by ai::ai_move(), impl_add_animation(), intf_advance_unit(), game_lua_kernel::intf_allow_undo(), intf_find_path(), game_lua_kernel::intf_get_time_of_day(), intf_music_add(), game_lua_kernel::intf_toggle_fog(), intf_unit_resistance(), os_exit(), lua_gui2::show_menu(), and ai::lua_object< T >::to_type().
#define lua_isfunction | ( | L, | |
n | |||
) | (lua_type(L, (n)) == LUA_TFUNCTION) |
Definition at line 351 of file lua.h.
Referenced by db_getinfo(), db_getlocal(), findloader(), ai::unit_advancements_aspect::get_advancements(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_skip_messages(), intf_synchronize_choice(), intf_synchronize_choices(), ll_require(), application_lua_kernel::load_script_from_file(), application_lua_kernel::load_script_from_string(), luaW_callwidgetcallback(), and ai::lua_object< T >::to_type().
#define lua_islightuserdata | ( | L, | |
n | |||
) | (lua_type(L, (n)) == LUA_TLIGHTUSERDATA) |
Definition at line 354 of file lua.h.
Referenced by generic_reader(), impl_music_set(), impl_unit_attacks_set(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_get_time_of_day(), lua_kernel_base::intf_require(), game_lua_kernel::intf_set_terrain(), io_lines(), ll_require(), luaL_ref(), luaW_getglobal(), and sort_comp().
Definition at line 357 of file lua.h.
Referenced by game_lua_kernel::apply_effect(), intf_add_modification(), intf_load(), game_lua_kernel::intf_message(), game_lua_kernel::intf_set_terrain(), game_lua_kernel::intf_skip_messages(), io_close(), io_lines(), luaB_load(), and luaB_loadfile().
Definition at line 358 of file lua.h.
Referenced by ai::ai_attack(), ai::ai_recall(), ai::ai_recruit(), db_sethook(), db_traceback(), lua_callable::do_compare(), find_widget_impl(), g_iofile(), impl_add_animation(), impl_unit_type_next(), impl_unit_variables_set(), intf_deprecated_message(), game_lua_kernel::intf_end_turn(), game_lua_kernel::intf_find_vacant_tile(), game_lua_kernel::intf_fire_event(), game_lua_kernel::intf_float_label(), game_lua_kernel::intf_get_units(), intf_invoke_synced_command(), lua_wml::intf_load_wml(), game_lua_kernel::intf_put_unit(), intf_random(), game_lua_kernel::intf_select_hex(), game_lua_kernel::intf_select_unit(), intf_set_music(), game_lua_kernel::intf_set_terrain(), intf_set_terrain(), game_lua_kernel::intf_set_variable(), game_lua_kernel::intf_set_village_owner(), intf_show_dialog(), intf_unit_resistance(), ai::lua_ai_load::lua_ai_load(), luaB_tonumber(), luaL_optlstring(), luaW_pushwidgettable(), luaW_pushwidgettablecontainer(), luaW_pushwindowtable(), luaW_setwidgetcallback(), luaW_table_get_def(), luaW_tableget(), luaW_tolocation(), math_log(), os_time(), lua_gui2::show_message_box(), lua_gui2::show_message_dialog(), lua_gui2::show_popup_dialog(), sort(), special_locations_next(), and tmove().
#define lua_istable | ( | L, | |
n | |||
) | (lua_type(L, (n)) == LUA_TTABLE) |
Definition at line 352 of file lua.h.
Referenced by game_lua_kernel::apply_effect(), mapgen_lua_kernel::create_scenario(), findfield(), game_lua_kernel::game_lua_kernel(), lua_kernel_base::get_attribute_names(), get_new_thread(), impl_add_animation(), impl_unit_attacks_get(), impl_unit_attacks_len(), impl_unit_attacks_set(), impl_unit_status_get(), impl_unit_status_set(), impl_unit_variables_get(), impl_unit_variables_set(), lua_formula_bridge::intf_eval_formula(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_get_time_of_day(), intf_mg_get_locations(), intf_mg_get_locations_part2(), mapgen_gamemap::intf_mg_terrain_mask(), intf_name_generator(), game_lua_kernel::intf_shroud_op(), lua_stringx::intf_str_join(), lua_stringx::intf_str_join_map(), lua_stringx::intf_str_map_split(), lua_stringx::intf_str_split(), intf_terainfilter_create(), game_lua_kernel::intf_terrain_mask(), game_lua_kernel::intf_toggle_fog(), load_fake_units(), lua_check_impl::lua_check(), lua_kernel_base::lua_kernel_base(), luaL_tolstring(), luaW_getglobal(), luaW_table_get_def(), luaW_table_set(), luaW_toconfig(), luaW_tolocation(), luaW_toslocs(), mapgen_lua_kernel::mapgen_lua_kernel(), read_rules_vector(), and ai::lua_object< T >::to_type().
#define lua_isthread | ( | L, | |
n | |||
) | (lua_type(L, (n)) == LUA_TTHREAD) |
Definition at line 356 of file lua.h.
Referenced by getthread().
#define LUA_MASKCALL (1 << LUA_HOOKCALL) |
Definition at line 411 of file lua.h.
Referenced by luaD_precall(), makemask(), and unmakemask().
#define LUA_MASKCOUNT (1 << LUA_HOOKCOUNT) |
Definition at line 414 of file lua.h.
Referenced by luaG_traceexec(), and makemask().
#define LUA_MASKLINE (1 << LUA_HOOKLINE) |
Definition at line 413 of file lua.h.
Referenced by luaD_poscall(), luaG_traceexec(), makemask(), and unmakemask().
#define LUA_MASKRET (1 << LUA_HOOKRET) |
Definition at line 412 of file lua.h.
Referenced by luaD_poscall(), makemask(), and unmakemask().
#define LUA_MINSTACK 20 |
Definition at line 78 of file lua.h.
Referenced by g_read(), luaD_hook(), luaD_precall(), luaW_filltable(), luaW_toconfig(), luaW_tolocation(), and stack_init().
#define LUA_MULTRET (-1) |
Definition at line 33 of file lua.h.
Referenced by funcargs(), lua_kernel_base::interactive_run(), lua_kernel_base::intf_dofile(), lastlistfield(), luaB_dofile(), luaB_pcall(), luaB_xpcall(), luaK_setlist(), luaK_setreturns(), luaV_execute(), moveresults(), resume(), retstat(), and lua_kernel_base::throwing_run().
#define lua_newtable | ( | L | ) | lua_createtable(L, 0, 0) |
Definition at line 345 of file lua.h.
Referenced by createclibstable(), db_getinfo(), game_lua_kernel::game_lua_kernel(), ai::generate_and_push_ai_state(), ai::generate_and_push_ai_table(), get_new_thread(), ai::impl_ai_aspect_get(), ai::impl_ai_get(), impl_race_get(), impl_unit_type_get(), lua_common::impl_vconfig_get(), ai::lua_ai_context::init(), game_lua_kernel::intf_get_recall_units(), game_lua_kernel::intf_get_terrain_info(), game_lua_kernel::intf_get_time_of_day(), intf_get_traits(), game_lua_kernel::intf_get_units(), game_lua_kernel::intf_get_villages(), game_lua_kernel::load_game(), lua_kernel_base::lua_kernel_base(), lua_check_impl::lua_push(), luaL_getsubtable(), luaW_filltable(), lua_wml::luaW_open(), lua_gui2::luaW_open(), lua_stringx::luaW_open(), lua_widget::luaW_open(), luaW_pushconfig(), luaW_pushfaivariant(), luaW_pushvariable(), ai::push_attack_analysis(), game_lua_kernel::push_builtin_effect(), push_locations_table(), lua_preferences::register_table(), application_lua_kernel::thread::run_script(), and ai::transform_ai_action().
#define LUA_NUMTAGS 9 |
Definition at line 73 of file lua.h.
Referenced by lua_newstate(), lua_typename(), and markmt().
#define LUA_OK 0 |
Definition at line 46 of file lua.h.
Referenced by auxresume(), finishpcall(), GCTM(), lua_kernel_base::get_attribute_names(), intf_load(), application_lua_kernel::thread::is_running(), load_aux(), application_lua_kernel::load_script_from_string(), lua_kernel_base::load_string(), lua_callk(), lua_checkstack(), lua_load(), lua_newstate(), lua_pcallk(), lua_resume(), luaB_costatus(), luaB_dofile(), luaD_pcall(), luaD_rawrunprotected(), luaH_resize(), preinit_thread(), lua_kernel_base::protected_call(), resume(), application_lua_kernel::thread::run_script(), searcher_Lua(), and application_lua_kernel::thread::status().
#define LUA_OPADD 0 /* ORDER TM, ORDER OP */ |
Definition at line 195 of file lua.h.
Referenced by intarith(), luaK_posfix(), luaO_arith(), and numarith().
#define LUA_OPBAND 7 |
Definition at line 202 of file lua.h.
Referenced by intarith(), luaO_arith(), and validop().
#define LUA_OPBNOT 13 |
Definition at line 208 of file lua.h.
Referenced by intarith(), lua_arith(), luaO_arith(), and validop().
#define LUA_OPBOR 8 |
Definition at line 203 of file lua.h.
Referenced by intarith(), luaO_arith(), and validop().
#define LUA_OPBXOR 9 |
Definition at line 204 of file lua.h.
Referenced by intarith(), luaO_arith(), and validop().
#define LUA_OPDIV 5 |
Definition at line 200 of file lua.h.
Referenced by luaO_arith(), numarith(), and validop().
#define LUA_OPEQ 0 |
Definition at line 212 of file lua.h.
Referenced by lua_callable::do_compare(), lua_compare(), and tmove().
#define LUA_OPIDIV 6 |
Definition at line 201 of file lua.h.
Referenced by intarith(), numarith(), and validop().
#define LUA_OPLE 2 |
Definition at line 214 of file lua.h.
Referenced by lua_compare().
#define LUA_OPLT 1 |
Definition at line 213 of file lua.h.
Referenced by lua_callable::do_compare(), lua_compare(), math_max(), math_min(), and sort_comp().
#define LUA_OPMOD 3 |
Definition at line 198 of file lua.h.
Referenced by intarith(), numarith(), and validop().
#define LUA_OPMUL 2 |
Definition at line 197 of file lua.h.
Referenced by intarith(), and numarith().
#define LUA_OPPOW 4 |
Definition at line 199 of file lua.h.
Referenced by luaO_arith(), and numarith().
#define LUA_OPSHL 10 |
Definition at line 205 of file lua.h.
Referenced by intarith(), luaO_arith(), and validop().
#define LUA_OPSHR 11 |
Definition at line 206 of file lua.h.
Referenced by intarith(), luaO_arith(), and validop().
#define LUA_OPSUB 1 |
Definition at line 196 of file lua.h.
Referenced by intarith(), and numarith().
#define LUA_OPUNM 12 |
Definition at line 207 of file lua.h.
Referenced by intarith(), lua_arith(), luaK_prefix(), and numarith().
#define lua_pcall | ( | L, | |
n, | |||
r, | |||
f | |||
) | lua_pcallk(L, (n), (r), (f), 0, NULL) |
Definition at line 277 of file lua.h.
Referenced by db_debug(), ai::unit_advancements_aspect::get_advancements(), and luaW_pcall_internal().
#define lua_pop | ( | L, | |
n | |||
) | lua_settop(L, -(n)-1) |
Definition at line 343 of file lua.h.
Referenced by add_value(), addtoclib(), auxresume(), auxsort(), ai::call_lua_filter_fcn(), cfun_exec_candidate_action(), cfun_exec_stage(), checkclib(), checktab(), lua_pathfind_cost_calculator::cost(), ai::lua_ai_context::create(), ai::lua_ai_action_handler::create(), mapgen_lua_kernel::create_map(), mapgen_lua_kernel::create_scenario(), createmeta(), createmetatable(), db_setlocal(), lua_mapgen::filter::filter(), findfield(), findloader(), g_read(), game_lua_kernel::game_lua_kernel(), gctm(), generic_reader(), ai::unit_advancements_aspect::get_advancements(), lua_kernel_base::get_attribute_names(), lua_kernel_base::get_global_var_names(), lua_callable::get_inputs(), get_new_thread(), lua_callable::get_value(), getboolfield(), getfield(), impl_add_animation(), ai::impl_ai_get(), game_lua_kernel::initialize(), lua_kernel_base::interactive_run(), intf_debug_ai(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), lua_map_location::intf_get_direction(), game_lua_kernel::intf_get_time_of_day(), intf_load(), lua_wml::intf_load_wml(), mapgen_gamemap::intf_mg_terrain_mask(), intf_name_generator(), lua_kernel_base::intf_print(), lua_kernel_base::intf_require(), lua_map_location::intf_rotate_right_around_center(), game_lua_kernel::intf_scroll(), game_lua_kernel::intf_terrain_mask(), ll_require(), load_aux(), lua_kernel_base::load_string(), ai::lua_ai_load::lua_ai_load(), lua_check_impl::lua_check(), lua_kernel_base::lua_kernel_base(), luaB_print(), luaL_getmetafield(), luaL_getsubtable(), luaL_len(), luaL_newmetatable(), luaL_ref(), luaL_requiref(), luaL_setfuncs(), luaL_testudata(), luaL_tolstring(), luaopen_package(), luaW_clearwindowtable(), luaW_getglobal(), lua_stringx::luaW_open(), luaW_pcall(), luaW_pushwidgettable(), luaW_pushwidgettablecontainer(), luaW_pushwindowtable(), luaW_setwidgetcallback(), luaW_table_get_def(), luaW_tableget(), luaW_to_locationset(), luaW_toconfig(), luaW_tolocation(), luaW_toslocs(), mapgen_lua_kernel::mapgen_lua_kernel(), noenv(), operator delete(), partition(), lua_kernel_base::protected_call(), pushglobalfuncname(), read_rules_vector(), lua_units::register_attacks_metatables(), lua_cpp::register_metatable(), lua_colors::register_metatables(), lua_preferences::register_table(), lua_unit_type::register_table(), lua_audio::register_table(), game_lua_kernel::run_filter(), game_lua_kernel::run_wml_conditional(), game_lua_kernel::save_game(), lua_cpp::set_functions(), game_lua_kernel::set_wml_action(), game_lua_kernel::set_wml_condition(), setpath(), lua_gui2::show_message_dialog(), sort_comp(), str_format(), lua_kernel_base::throwing_run(), ai::lua_object< T >::to_type(), ai::lua_ai_context::update_state(), filter_impl::~filter_impl(), ai::lua_ai_action_handler::~lua_ai_action_handler(), ai::lua_ai_context::~lua_ai_context(), and ai::lua_ai_load::~lua_ai_load().
#define lua_pushcfunction | ( | L, | |
f | |||
) | lua_pushcclosure(L, (f), 0) |
Definition at line 349 of file lua.h.
Referenced by application_lua_kernel::application_lua_kernel(), createclibstable(), game_lua_kernel::game_lua_kernel(), ai::impl_ai_get(), impl_unit_attacks_iter(), impl_unit_type_pairs(), iter_codes(), lua_kernel_base::load_package(), lookforfunc(), lua_kernel_base::lua_kernel_base(), luaB_ipairs(), luaL_requiref(), lua_stringx::luaW_open(), newbox(), pairsmeta(), push_locations_table(), lua_units::register_attacks_metatables(), lua_cpp::register_metatable(), lua_widget::register_metatable(), lua_unit_type::register_metatable(), lua_formula_bridge::register_metatables(), lua_colors::register_metatables(), lua_terrainmap::register_metatables(), lua_units::register_metatables(), lua_terrainfilter::register_metatables(), lua_preferences::register_table(), lua_unit_type::register_table(), lua_common::register_vconfig_metatable(), and special_locations_pairs().
#define lua_pushglobaltable | ( | L | ) | ((void)lua_rawgeti(L, LUA_REGISTRYINDEX, LUA_RIDX_GLOBALS)) |
Definition at line 362 of file lua.h.
Referenced by ll_require(), luaL_tolstring(), luaopen_base(), luaopen_package(), and luaW_getglobal().
#define lua_pushliteral | ( | L, | |
s | |||
) | lua_pushstring(L, "" s) |
Definition at line 360 of file lua.h.
Referenced by auxresume(), createmetatable(), db_gethook(), f_tostring(), findfield(), ai::lua_object< T >::from_type(), io_noclose(), io_type(), lsys_load(), lsys_sym(), luaB_assert(), luaB_costatus(), luaL_loadfilex(), luaL_tolstring(), luaL_traceback(), luaopen_base(), luaopen_package(), lua_stringx::luaW_open(), math_type(), pushfuncname(), str_rep(), str_sub(), and test_eof().
#define lua_register | ( | L, | |
n, | |||
f | |||
) | (lua_pushcfunction(L, (f)), lua_setglobal(L, (n))) |
#define LUA_REGISTRYINDEX (-LUAI_MAXSTACK - 1000) |
Definition at line 41 of file lua.h.
Referenced by addtoclib(), ai::call_lua_filter_fcn(), checkclib(), ai::lua_ai_action_handler::create(), createclibstable(), createstdfile(), db_gethook(), db_getregistry(), db_sethook(), g_iofile(), ai::generate_and_push_ai_state(), ai::unit_advancements_aspect::get_advancements(), ai::lua_ai_context::get_arguments(), get_new_thread(), ai::lua_ai_context::get_persistent_data(), getiofile(), ai::lua_ai_action_handler::handle(), hookf(), index2addr(), ai::lua_ai_context::init(), lua_kernel_base::interactive_run(), io_close(), io_lines(), ll_require(), ai::lua_ai_load::lua_ai_load(), lua_kernel_base::lua_kernel_base(), luaL_newmetatable(), luaL_requiref(), luaL_tolstring(), luaopen_package(), luaW_pcall_internal(), luaW_pushwidgettablecontainer(), noenv(), push_error_handler(), pushglobalfuncname(), ai::aspect_attacks_lua::recalculate(), searcher_preload(), ai::lua_ai_context::set_arguments(), ai::lua_ai_context::set_persistent_data(), lua_kernel_base::throwing_run(), ai::lua_object< T >::to_type(), ai::unit_advancements_aspect::unit_advancements_aspect(), ai::lua_ai_action_handler::~lua_ai_action_handler(), ai::lua_ai_context::~lua_ai_context(), and ai::unit_advancements_aspect::~unit_advancements_aspect().
#define LUA_RELEASE LUA_VERSION "." LUA_VERSION_RELEASE |
#define lua_remove | ( | L, | |
idx | |||
) | (lua_rotate(L, (idx), -1), lua_pop(L, 1)) |
Definition at line 370 of file lua.h.
Referenced by add_s(), ai::lua_ai_action_handler::create(), db_gethook(), errfile(), findfield(), ai::generate_and_push_ai_state(), ai::lua_ai_action_handler::handle(), lua_cpp::intf_dispatcher(), intf_music_add(), lua_fileops::load_file(), ai::lua_ai_load::lua_ai_load(), luaB_assert(), luaL_addvalue(), luaL_getmetafield(), luaL_loadfilex(), luaL_pushresult(), luaL_requiref(), luaL_tolstring(), luaW_getglobal(), luaW_getwidgetcallback(), luaW_pcall_internal(), luaW_pushslocs(), luaW_pushwidgettable(), luaW_pushwindowtable(), luaW_tolocation(), pushfuncname(), pushglobalfuncname(), searchpath(), and setpath().
Definition at line 372 of file lua.h.
Referenced by generic_reader(), game_lua_kernel::intf_select_hex(), lua_stringx::intf_str_format(), and io_lines().
#define LUA_RIDX_GLOBALS 2 |
Definition at line 83 of file lua.h.
Referenced by init_registry(), lua_getglobal(), lua_load(), and lua_setglobal().
#define LUA_RIDX_LAST LUA_RIDX_GLOBALS |
Definition at line 84 of file lua.h.
Referenced by init_registry().
#define LUA_RIDX_MAINTHREAD 1 |
Definition at line 82 of file lua.h.
Referenced by init_registry().
#define LUA_SIGNATURE "\x1bLua" |
Definition at line 30 of file lua.h.
Referenced by checkHeader(), checkliteral(), DumpHeader(), f_parser(), luaL_loadfilex(), and luaU_undump().
#define LUA_TBOOLEAN 1 |
Definition at line 64 of file lua.h.
Referenced by addliteral(), DumpConstants(), impl_add_animation(), lua_wml::intf_load_wml(), LoadConstants(), luaL_tolstring(), luaV_equalobj(), luaW_checkvariable(), luaW_tofaivariant(), luaW_toscalar(), luaW_totstring(), mainposition(), and WIDGET_SETTER().
#define LUA_TFUNCTION 6 |
Definition at line 69 of file lua.h.
Referenced by add_value(), auxupvalue(), checkupval(), db_sethook(), lua_kernel_base::get_attribute_names(), hookf(), intf_find_path(), luaB_cocreate(), luaB_load(), luaB_xpcall(), sort(), str_dump(), and str_gsub().
#define LUA_TLIGHTUSERDATA 2 |
Definition at line 65 of file lua.h.
Referenced by lua_topointer(), lua_touserdata(), luaV_equalobj(), mainposition(), and typeerror().
#define LUA_TNIL 0 |
Definition at line 63 of file lua.h.
Referenced by addliteral(), checkfield(), db_sethook(), db_setmetatable(), DumpConstants(), findloader(), getboolfield(), getfield(), ipairsaux(), ll_require(), LoadConstants(), luaB_setmetatable(), luaH_get(), luaL_callmeta(), luaL_getmetafield(), luaL_newmetatable(), luaL_tolstring(), luaV_equalobj(), luaW_toconfig(), luaW_tovconfig(), pairsmeta(), and searcher_preload().
#define LUA_TNONE (-1) |
Definition at line 61 of file lua.h.
Referenced by lua_type(), lua_typename(), luaB_type(), luaL_checkany(), luaW_toconfig(), and luaW_tovconfig().
#define LUA_TNUMBER 3 |
Definition at line 66 of file lua.h.
Referenced by addliteral(), checktab(), g_read(), g_write(), lua_stringx::impl_str_index(), interror(), luaB_tonumber(), luaL_checknumber(), luaL_tolstring(), luaV_equalobj(), luaW_checkvariable(), luaW_toconfig(), luaW_tofaivariant(), luaW_toscalar(), luaW_totstring(), math_type(), str_gsub(), and lua_common::tstring_concat_aux().
#define lua_tointeger | ( | L, | |
i | |||
) | lua_tointegerx(L,(i),NULL) |
Definition at line 341 of file lua.h.
Referenced by addliteral(), ai::ai_attack(), find_widget_impl(), g_write(), impl_music_get(), impl_music_set(), lua_common::impl_vconfig_get(), game_lua_kernel::intf_find_reach(), intf_music_add(), game_lua_kernel::intf_play_sound(), game_lua_kernel::intf_put_recall_unit(), game_lua_kernel::intf_simulate_combat(), intf_synchronize_choice(), io_readline(), iter_aux(), load_fake_units(), luaL_ref(), luaL_tolstring(), luaW_tofaivariant(), math_abs(), math_fmod(), lua_gui2::show_menu(), lua_gui2::show_message_dialog(), and ai::lua_object< T >::to_type().
#define lua_tonumber | ( | L, | |
i | |||
) | lua_tonumberx(L,(i),NULL) |
Definition at line 340 of file lua.h.
Referenced by addliteral(), ai::ai_attack(), ai::ai_recall(), ai::ai_recruit(), checktab(), lua_pathfind_cost_calculator::cost(), g_write(), impl_add_animation(), impl_unit_attacks_set(), lua_wml::intf_load_wml(), game_lua_kernel::intf_set_end_campaign_text(), intf_sound_volume(), intf_terainmap_create(), game_lua_kernel::intf_toggle_fog(), luaL_tolstring(), luaW_checkvariable(), luaW_tofaivariant(), luaW_tolocation(), luaW_toscalar(), ai::lua_object< T >::to_type(), and filter_impl::~filter_impl().
#define lua_tostring | ( | L, | |
i | |||
) | lua_tolstring(L, (i), NULL) |
Definition at line 365 of file lua.h.
Referenced by game_lua_kernel::apply_effect(), game_lua_kernel::cfun_builtin_effect(), checkload(), ai::lua_ai_context::create(), ai::lua_ai_action_handler::create(), mapgen_lua_kernel::create_map(), db_debug(), db_traceback(), errfile(), find_widget_impl(), findfile(), findloader(), g_iofile(), ai::unit_advancements_aspect::get_advancements(), lua_kernel_base::get_attribute_names(), lua_kernel_base::get_global_var_names(), lua_callable::get_inputs(), impl_add_animation(), ai::impl_ai_get(), impl_animator_get(), impl_unit_attacks_set(), lua_formula_bridge::intf_compile_formula(), lua_stringx::intf_format(), lua_wml::intf_load_wml(), intf_name_generator(), lua_kernel_base::intf_print(), game_lua_kernel::intf_remove_tile_overlay(), game_lua_kernel::intf_set_time_of_day(), game_lua_kernel::intf_shroud_op(), intf_transform_unit(), io_readline(), load_fake_units(), application_lua_kernel::load_script_from_string(), lua_kernel_base::load_string(), lua_kernel_base::lua_kernel_base(), luaB_select(), luaL_argerror(), luaL_gsub(), luaL_loadfilex(), luaL_tolstring(), luaW_checkrace(), luaW_checkvariable(), luaW_pcall(), luaW_toconfig(), luaW_tofaivariant(), luaW_toscalar(), luaW_totstring(), panic(), lua_kernel_base::protected_call(), pushfuncname(), pushglobalfuncname(), application_lua_kernel::thread::run_script(), searcher_Croot(), searchpath(), ai::lua_object< T >::to_type(), lua_common::tstring_concat_aux(), typeerror(), and WIDGET_SETTER().
#define LUA_TSTRING 4 |
Definition at line 67 of file lua.h.
Referenced by addliteral(), findfield(), lua_kernel_base::get_attribute_names(), lua_callable::get_inputs(), impl_add_animation(), lua_stringx::impl_str_index(), intf_name_generator(), luaB_auxwrap(), luaB_error(), luaB_rawlen(), luaB_select(), luaB_tonumber(), luaL_checklstring(), luaL_tolstring(), luaW_checkvariable(), luaW_toconfig(), luaW_tofaivariant(), luaW_toscalar(), luaW_totstring(), str_gsub(), lua_common::tstring_concat_aux(), typeerror(), and WIDGET_SETTER().
#define LUA_TTABLE 5 |
Definition at line 68 of file lua.h.
Referenced by add_value(), checktab(), db_setmetatable(), findloader(), freeobj(), lua_kernel_base::get_attribute_names(), lua_wml::intf_load_wml(), ll_require(), lua_getmetatable(), lua_rawlen(), lua_setmetatable(), lua_topointer(), luaB_next(), luaB_rawget(), luaB_rawlen(), luaB_rawset(), luaB_setmetatable(), luaH_new(), luaL_getsubtable(), luaL_tolstring(), luaT_gettmbyobj(), luaV_equalobj(), luaV_objlen(), luaW_checkvariable(), luaW_toconfig(), luaW_tofaivariant(), luaW_tovconfig(), os_time(), propagatemark(), reallymarkobject(), lua_gui2::show_message_dialog(), and str_gsub().
#define LUA_TTHREAD 8 |
Definition at line 71 of file lua.h.
Referenced by freeobj(), lua_newstate(), lua_newthread(), lua_topointer(), propagatemark(), and reallymarkobject().
#define LUA_TUSERDATA 7 |
Definition at line 70 of file lua.h.
Referenced by db_getuservalue(), db_setuservalue(), freeobj(), lua_wml::intf_load_wml(), lua_getmetatable(), lua_rawlen(), lua_setmetatable(), lua_topointer(), lua_touserdata(), luaS_newudata(), luaT_gettmbyobj(), luaV_equalobj(), luaW_checkvariable(), luaW_toconfig(), luaW_tofaivariant(), luaW_toscalar(), luaW_totstring(), luaW_tovconfig(), reallymarkobject(), and lua_common::tstring_concat_aux().
#define lua_upvalueindex | ( | i | ) | (LUA_REGISTRYINDEX - (i)) |
Definition at line 42 of file lua.h.
Referenced by game_lua_kernel::cfun_builtin_effect(), game_lua_kernel::cfun_wml_action(), cfun_wml_condition(), findfile(), findloader(), ai::get_engine(), gmatch_aux(), lua_common::impl_vconfig_ipairs_iter(), lua_common::impl_vconfig_pairs_iter(), lua_cpp::intf_closure_dispatcher(), lua_stringx::intf_str_format(), io_readline(), and luaB_auxwrap().
#define LUA_VERSION "Lua " LUA_VERSION_MAJOR "." LUA_VERSION_MINOR |
Definition at line 23 of file lua.h.
Referenced by luaopen_base().
#define LUA_VERSION_NUM 503 |
Definition at line 20 of file lua.h.
Referenced by lua_version().
#define LUA_YIELD 1 |
Definition at line 47 of file lua.h.
Referenced by auxresume(), finishCcall(), finishpcall(), application_lua_kernel::thread::is_running(), lua_resume(), lua_yieldk(), luaB_costatus(), luaG_traceexec(), resume(), application_lua_kernel::thread::run_script(), application_lua_kernel::thread::status(), swapextra(), and unroll().
#define lua_yield | ( | L, | |
n | |||
) | lua_yieldk(L, (n), 0, NULL) |
Definition at line 294 of file lua.h.
Referenced by luaB_yield().
typedef void*(* lua_Alloc) (void *ud, void *ptr, size_t osize, size_t nsize) |
typedef LUA_INTEGER lua_Integer |
typedef LUA_KCONTEXT lua_KContext |
typedef int(* lua_KFunction) (lua_State *L, int status, lua_KContext ctx) |
typedef LUA_NUMBER lua_Number |
typedef const char*(* lua_Reader) (lua_State *L, void *ud, size_t *sz) |
typedef LUA_UNSIGNED lua_Unsigned |
Definition at line 160 of file lapi.cpp.
References cast_int, lua_State::ci, CallInfo::func, ispseudo, and lua_State::top.
Referenced by lua_kernel_base::get_attribute_names(), ai::lua_ai_action_handler::handle(), impl_add_animation(), lua_stringx::intf_str_join_map(), luaL_callmeta(), luaL_getsubtable(), luaL_ref(), luaL_unref(), luaW_getwidgetcallback(), luaW_pushwidgettable(), luaW_pushwindowtable(), luaW_setwidgetcallback(), luaW_table_set(), luaW_tableget(), luaW_toconfig(), luaW_tolocation(), push_unit_attacks_table(), and ai::lua_object< T >::store().
Definition at line 302 of file lapi.cpp.
References api_checknelems, api_incr_top, lua_lock, LUA_OPBNOT, LUA_OPUNM, lua_unlock, luaO_arith(), setobjs2s, and lua_State::top.
LUA_API lua_CFunction() lua_atpanic | ( | lua_State * | L, |
lua_CFunction | panicf | ||
) |
Definition at line 134 of file lapi.cpp.
References G, lua_lock, and lua_unlock.
Referenced by luaL_newstate().
LUA_API void() lua_callk | ( | lua_State * | L, |
int | nargs, | ||
int | nresults, | ||
lua_KContext | ctx, | ||
lua_KFunction | k | ||
) |
Definition at line 909 of file lapi.cpp.
References adjustresults, api_check, api_checknelems, CallInfo::c, checkresults, lua_State::ci, isLua, lua_lock, LUA_OK, lua_unlock, luaD_call(), luaD_callnoyield(), lua_State::nny, lua_State::status, lua_State::top, and CallInfo::u.
Referenced by luaB_dofile().
Definition at line 97 of file lapi.cpp.
References api_check, cast_int, lua_State::ci, EXTRA_STACK, growstack(), lua_lock, LUA_OK, lua_unlock, luaD_rawrunprotected(), LUAI_MAXSTACK, n, lua_State::stack, lua_State::stack_last, CallInfo::top, and lua_State::top.
Referenced by auxresume(), checkstack(), luaL_checkstack(), luaW_filltable(), luaW_toconfig(), luaW_tolocation(), and unpack().
Definition at line 341 of file lstate.cpp.
References close_state(), G, and lua_lock.
Referenced by os_exit(), and lua_kernel_base::~lua_kernel_base().
Definition at line 318 of file lapi.cpp.
References api_check, i, index2addr(), isvalid, lua_lock, LUA_OPEQ, LUA_OPLE, LUA_OPLT, lua_unlock, luaV_equalobj(), luaV_lessequal(), and luaV_lessthan().
Referenced by lua_callable::do_compare(), math_max(), math_min(), sort_comp(), and tmove().
Definition at line 1140 of file lapi.cpp.
References api_checknelems, api_incr_top, lua_lock, lua_unlock, luaC_checkGC, luaS_newlstr(), luaV_concat(), setsvalue2s, and lua_State::top.
Referenced by findfield(), luaB_auxwrap(), luaB_error(), luaL_error(), and luaL_traceback().
Definition at line 222 of file lapi.cpp.
References api_checkvalidindex, lua_State::ci, clCvalue, CallInfo::func, index2addr(), isupvalue, lua_lock, lua_unlock, luaC_barrier, and setobj.
Referenced by pushglobalfuncname().
Definition at line 684 of file lapi.cpp.
References api_incr_top, lua_lock, lua_unlock, luaC_checkGC, luaH_new(), luaH_resize(), sethvalue, t, and lua_State::top.
Referenced by ai::cfun_ai_get_attacks(), ai::cfun_ai_get_leader_goal(), ai::cfun_ai_get_recruitment_pattern(), ai::cfun_ai_get_targets(), createclibstable(), createmetatable(), createsearcherstable(), db_sethook(), ai::lua_object< T >::from_type(), game_lua_kernel::game_lua_kernel(), ai::impl_ai_aspect_get(), impl_side_get(), lua_common::impl_vconfig_get(), lua_common::impl_vconfig_ipairs_iter(), intf_default_generate_height_map(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_get_locations(), game_lua_kernel::intf_get_sides(), game_lua_kernel::intf_get_villages(), ll_require(), game_lua_kernel::load_game(), lua_kernel_base::lua_kernel_base(), lua_check_impl::lua_push(), luaL_newmetatable(), luaL_tolstring(), luaW_filltable(), lua_stringx::luaW_open(), luaW_push_locationset(), luaW_pushlocation(), luaW_pushrace(), luaW_pushracetable(), luaW_pushsimdata(), luaW_pushsimweapon(), luaW_pushsinglecolor(), luaW_pushslocs(), luaW_pushwidgettable(), luaW_pushwidgettablecontainer(), luaW_pushwindowtable(), os_date(), pack(), push_component(), ai::push_move_map(), ai::push_movements(), push_unit_attacks_table(), lua_colors::register_metatables(), lua_audio::register_table(), and lua_common::register_tstring_metatable().
LUA_API int() lua_dump | ( | lua_State * | L, |
lua_Writer | writer, | ||
void * | data, | ||
int | strip | ||
) |
Definition at line 1016 of file lapi.cpp.
References api_checknelems, getproto, isLfunction, lua_lock, lua_unlock, luaU_dump(), and lua_State::top.
Referenced by str_dump().
Definition at line 1114 of file lapi.cpp.
References api_checknelems, lua_lock, and luaG_errormsg().
Referenced by mapgen_lua_kernel::create_map(), mapgen_lua_kernel::create_scenario(), ai::lua_object< T >::from_type(), ai::impl_ai_aspect_set(), lua_rng::impl_rng_destroy(), impl_unit_type_new(), lua_cpp::intf_cleanup(), intf_deprecated_message(), lua_map_location::intf_distance_between(), lua_map_location::intf_get_relative_dir(), intf_name_generator(), lua_map_location::intf_rotate_right_around_center(), intf_switch_ai(), lua_map_location::intf_tiles_adjacent(), lua_map_location::intf_vector_diff(), lua_map_location::intf_vector_sum(), lua_fileops::load_file(), application_lua_kernel::load_script_from_file(), application_lua_kernel::load_script_from_string(), luaB_auxwrap(), luaB_dofile(), luaB_error(), luaL_error(), special_locations_newindex(), and lua_kernel_base::throw_exception().
Definition at line 1040 of file lapi.cpp.
References cast, cast_int, g, G, global_State::GCdebt, global_State::gcpause, global_State::gcrunning, GCSpause, global_State::gcstate, global_State::gcstepmul, GCSTEPSIZE, gettotalbytes, LUA_GCCOLLECT, LUA_GCCOUNT, LUA_GCCOUNTB, LUA_GCISRUNNING, LUA_GCRESTART, LUA_GCSETPAUSE, LUA_GCSETSTEPMUL, LUA_GCSTEP, LUA_GCSTOP, lua_lock, lua_unlock, luaC_checkGC, luaC_fullgc(), luaC_step(), and luaE_setdebt().
Referenced by luaB_collectgarbage().
Definition at line 1166 of file lapi.cpp.
References f, G, lua_lock, and lua_unlock.
Referenced by resizebox().
Definition at line 622 of file lapi.cpp.
References auxgetstr(), index2addr(), and lua_lock.
Referenced by ai::cfun_attack_rating(), cfun_exec_candidate_action(), cfun_exec_stage(), checkclib(), ai::lua_ai_action_handler::create(), lua_callable::do_compare(), findfile(), findloader(), g_iofile(), ai::generate_and_push_ai_state(), ai::lua_ai_context::get_arguments(), ai::lua_ai_context::get_persistent_data(), getboolfield(), getfield(), getiofile(), ai::lua_ai_action_handler::handle(), impl_add_animation(), lua_kernel_base::interactive_run(), io_close(), io_lines(), ll_require(), load_fake_units(), ai::lua_ai_load::lua_ai_load(), luaL_getsubtable(), luaL_requiref(), luaL_tolstring(), luaopen_table(), lua_stringx::luaW_open(), luaW_pcall_internal(), luaW_tolocation(), noenv(), pushglobalfuncname(), searcher_preload(), ai::lua_ai_context::set_arguments(), ai::lua_ai_context::set_persistent_data(), lua_gui2::show_message_dialog(), lua_kernel_base::throwing_run(), ai::lua_object< T >::to_type(), ai::lua_ai_context::update_state(), ai::lua_ai_action_handler::~lua_ai_action_handler(), and ai::lua_ai_context::~lua_ai_context().
Definition at line 605 of file lapi.cpp.
References auxgetstr(), G, hvalue, lua_lock, LUA_RIDX_GLOBALS, and luaH_getint().
Referenced by application_lua_kernel::application_lua_kernel(), game_lua_kernel::game_lua_kernel(), lua_kernel_base::get_global_var_names(), lua_stringx::impl_str_index(), game_lua_kernel::initialize(), intf_describe_plugins(), lua_kernel_base::intf_print(), lua_kernel_base::intf_require(), lua_stringx::intf_str_format(), lua_stringx::intf_str_join(), lua_stringx::intf_str_join_map(), ai::lua_ai_load::lua_ai_load(), lua_kernel_base::lua_kernel_base(), luaB_print(), lua_stringx::luaW_open(), mapgen_lua_kernel::mapgen_lua_kernel(), lua_colors::register_metatables(), lua_preferences::register_table(), lua_unit_type::register_table(), lua_audio::register_table(), game_lua_kernel::set_wml_action(), game_lua_kernel::set_wml_condition(), and ai::lua_ai_load::~lua_ai_load().
Definition at line 105 of file ldebug.cpp.
References lua_State::basehookcount.
Referenced by db_gethook().
Definition at line 100 of file ldebug.cpp.
References lua_State::hookmask.
Referenced by db_gethook().
LUA_API int() lua_geti | ( | lua_State * | L, |
int | idx, | ||
lua_Integer | n | ||
) |
Definition at line 628 of file lapi.cpp.
References api_incr_top, index2addr(), lua_lock, lua_unlock, luaH_getint(), luaV_fastget, luaV_finishget(), setivalue, setobj2s, t, lua_State::top, and ttnov.
Referenced by addfield(), auxsort(), lua_wml::intf_load_wml(), lua_stringx::intf_str_join(), ipairsaux(), luaW_to_locationset(), partition(), tinsert(), tmove(), tremove(), unpack(), and filter_impl::~filter_impl().
Definition at line 310 of file ldebug.cpp.
References api_check, api_incr_top, auxgetinfo(), clvalue, collectvalidlines(), CallInfo::func, getobjname(), lua_Debug::i_ci, lua_assert, lua_lock, lua_unlock, name, p, setobjs2s, swapextra(), lua_State::top, ttisclosure, and ttisfunction.
Referenced by db_getinfo(), lua_fileops::get_calling_file(), hookf(), ll_require(), luaL_argerror(), luaL_traceback(), luaL_where(), and pushglobalfuncname().
Definition at line 172 of file ldebug.cpp.
References api_incr_top, clLvalue, findlocal(), lua_Debug::i_ci, isLfunction, lua_lock, lua_unlock, luaF_getlocalname(), name, setobj2s, swapextra(), and lua_State::top.
Referenced by db_getlocal().
Definition at line 697 of file lapi.cpp.
References api_incr_top, G, hvalue, index2addr(), lua_lock, LUA_TTABLE, LUA_TUSERDATA, lua_unlock, sethvalue, lua_State::top, ttnov, and uvalue.
Referenced by checktab(), db_getmetatable(), lua_callable::do_compare(), ll_require(), luaB_getmetatable(), luaL_getmetafield(), luaL_testudata(), and lua_stringx::luaW_open().
Definition at line 110 of file ldebug.cpp.
References lua_State::base_ci, lua_State::ci, lua_Debug::i_ci, lua_lock, lua_unlock, and CallInfo::previous.
Referenced by db_getinfo(), db_getlocal(), db_setlocal(), lua_fileops::get_calling_file(), lastlevel(), ll_require(), luaB_costatus(), luaL_argerror(), luaL_traceback(), and luaL_where().
Definition at line 612 of file lapi.cpp.
References index2addr(), lua_lock, lua_unlock, luaV_gettable, t, lua_State::top, and ttnov.
Referenced by add_value(), lua_callable::get_value(), lua_stringx::impl_str_index(), impl_unit_attacks_next(), lua_kernel_base::lua_kernel_base(), luaW_table_get_def(), luaW_tableget(), and ai::lua_object< T >::to_type().
Definition at line 167 of file lapi.cpp.
References cast_int, lua_State::ci, CallInfo::func, and lua_State::top.
Referenced by game_lua_kernel::apply_effect(), aux_lines(), auxresume(), ai::cfun_ai_get_attacks(), ai::cfun_attack_rating(), lua_callable::do_compare(), dofilecont(), finishpcall(), g_read(), g_write(), ai::lua_ai_context::get_arguments(), lua_kernel_base::get_attribute_names(), lua_kernel_base::get_global_var_names(), ai::lua_ai_context::get_persistent_data(), ai::lua_ai_action_handler::handle(), impl_context_accessor(), lua_kernel_base::interactive_run(), intf_add_dialog_item(), intf_add_item_of_type(), intf_dialog_close(), lua_kernel_base::intf_dofile(), game_lua_kernel::intf_find_path(), lua_map_location::intf_get_direction(), game_lua_kernel::intf_log_replay(), intf_music_add(), intf_music_remove(), lua_kernel_base::intf_print(), intf_remove_dialog_item(), intf_set_dialog_callback(), intf_set_dialog_canvas(), lua_stringx::intf_str_format(), ll_require(), load_fake_units(), luaB_assert(), luaB_auxwrap(), luaB_coresume(), luaB_costatus(), luaB_pcall(), luaB_print(), luaB_select(), luaB_xpcall(), luaB_yield(), luaL_loadfilex(), luaL_traceback(), luaW_pcall_internal(), luaW_toconfig(), mapgen_lua_kernel::mapgen_lua_kernel(), math_max(), math_min(), math_random(), pack(), game_lua_kernel::push_builtin_effect(), ai::push_movements(), pushglobalfuncname(), ai::lua_ai_context::set_arguments(), ai::lua_ai_context::set_persistent_data(), str_char(), str_format(), tinsert(), and utfchar().
Definition at line 1222 of file lapi.cpp.
References api_incr_top, aux_upvalue(), index2addr(), lua_lock, lua_unlock, name, setobj2s, and lua_State::top.
Referenced by auxupvalue(), and checkupval().
Definition at line 724 of file lapi.cpp.
References api_check, api_incr_top, getuservalue, index2addr(), lua_lock, lua_unlock, lua_State::top, ttisfulluserdata, ttnov, and uvalue.
Referenced by db_getuservalue().
Definition at line 264 of file lapi.cpp.
References index2addr(), ttisCclosure, and ttislcf.
Referenced by db_upvaluejoin(), and ll_require().
Definition at line 270 of file lapi.cpp.
References index2addr(), and ttisinteger.
Referenced by addliteral(), g_write(), lua_widget::impl_widget_get(), intf_music_add(), luaL_tolstring(), math_abs(), math_ceil(), math_floor(), math_fmod(), math_modf(), and math_type().
Definition at line 276 of file lapi.cpp.
References index2addr(), n, and tonumber.
Referenced by ai::ai_attack(), game_lua_kernel::apply_effect(), find_widget_impl(), lua_callable::get_inputs(), impl_add_animation(), impl_music_get(), impl_music_set(), impl_unit_attacks_get(), impl_unit_attacks_set(), lua_common::impl_vconfig_get(), interror(), intf_add_item_of_type(), game_lua_kernel::intf_get_time_of_day(), game_lua_kernel::intf_get_unit(), intf_music_add(), intf_random(), game_lua_kernel::intf_set_end_campaign_text(), game_lua_kernel::intf_simulate_combat(), intf_sound_volume(), intf_terainmap_create(), game_lua_kernel::intf_toggle_fog(), load_fake_units(), luaW_tolocation(), lua_gui2::show_menu(), lua_gui2::show_message_dialog(), and ai::lua_object< T >::to_type().
Definition at line 283 of file lapi.cpp.
References cvt2str, index2addr(), and ttisstring.
Referenced by add_value(), addfield(), game_lua_kernel::apply_effect(), mapgen_lua_kernel::create_map(), findloader(), generic_reader(), ai::unit_advancements_aspect::get_advancements(), lua_kernel_base::get_global_var_names(), impl_add_animation(), ai::impl_ai_get(), lua_common::impl_gettext(), lua_formula_bridge::intf_compile_formula(), lua_stringx::intf_format(), lua_map_location::intf_get_direction(), game_lua_kernel::intf_get_unit(), lua_wml::intf_load_wml(), game_lua_kernel::intf_log(), intf_log(), game_lua_kernel::intf_log_replay(), intf_name_generator(), game_lua_kernel::intf_set_time_of_day(), game_lua_kernel::intf_shroud_op(), intf_switch_ai(), intf_transform_unit(), intf_unit_defense(), intf_unit_jamming_cost(), intf_unit_movement_cost(), intf_unit_vision_cost(), lua_wml::intf_wml_merge(), load_fake_units(), luaL_tolstring(), luaW_iststring(), lua_kernel_base::protected_call(), and ai::lua_object< T >::to_type().
Definition at line 289 of file lapi.cpp.
References index2addr(), ttisfulluserdata, and ttislightuserdata.
Referenced by ai::cfun_ai_get_suitable_keep(), lua_kernel_base::get_attribute_names(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), luaW_iststring(), and luaW_tolocation().
Definition at line 1156 of file lapi.cpp.
References api_incr_top, index2addr(), lua_lock, lua_unlock, luaV_objlen(), t, and lua_State::top.
Referenced by impl_unit_attacks_next(), lua_wml::intf_load_wml(), and luaL_len().
LUA_API int() lua_load | ( | lua_State * | L, |
lua_Reader | reader, | ||
void * | dt, | ||
const char * | chunkname, | ||
const char * | mode | ||
) |
Definition at line 992 of file lapi.cpp.
References clLvalue, f, G, hvalue, lua_lock, LUA_OK, LUA_RIDX_GLOBALS, lua_unlock, luaC_upvalbarrier, luaD_protectedparser(), luaH_getint(), luaZ_init(), setobj, lua_State::top, LClosure::upvals, and UpVal::v.
Referenced by lua_fileops::lua_filestream::lua_loadfile(), luaB_load(), luaL_loadbufferx(), and luaL_loadfilex().
Definition at line 295 of file lstate.cpp.
References global_State::allgc, global_State::allweak, bitmask, cast, close_state(), global_State::currentwhite, global_State::ephemeron, f, f_luaopen(), global_State::finobj, global_State::fixedgc, global_State::frealloc, g, LG::g, global_State::GCdebt, global_State::GCestimate, global_State::gcfinnum, global_State::gckind, global_State::gcpause, global_State::gcrunning, GCSpause, global_State::gcstate, global_State::gcstepmul, global_State::gray, global_State::grayagain, stringtable::hash, i, KGC_NORMAL, LX::l, LG::l, global_State::l_registry, LUA_NUMTAGS, LUA_OK, LUA_TTHREAD, luaC_white, luaD_rawrunprotected(), LUAI_GCMUL, LUAI_GCPAUSE, global_State::mainthread, makeseed(), global_State::mt, stringtable::nuse, global_State::panic, preinit_thread(), global_State::seed, setnilvalue, stringtable::size, global_State::strt, global_State::sweepgc, global_State::tobefnz, global_State::totalbytes, global_State::twups, global_State::ud, global_State::version, global_State::weak, and WHITE0BIT.
Referenced by luaL_newstate(), and makeseed().
Definition at line 255 of file lstate.cpp.
References global_State::allgc, api_incr_top, lua_State::basehookcount, cast, g, G, lua_State::hook, lua_State::hookmask, LUA_EXTRASPACE, lua_getextraspace, lua_lock, LUA_TTHREAD, lua_unlock, luaC_checkGC, luaC_white, luai_userstatethread, luaM_newobject, global_State::mainthread, obj2gco, preinit_thread(), resethookcount, setthvalue, stack_init(), and lua_State::top.
Referenced by get_new_thread(), and luaB_cocreate().
Definition at line 1184 of file lapi.cpp.
References api_incr_top, getudatamem, lua_lock, lua_unlock, luaC_checkGC, luaS_newudata(), setuvalue, and lua_State::top.
Referenced by game_lua_kernel::game_lua_kernel(), gmatch(), lua_common::intf_textdomain(), lua_kernel_base::lua_kernel_base(), luaW_pushunittype(), newbox(), newprefile(), operator new(), lua_colors::register_metatables(), and lua_audio::register_table().
Definition at line 1123 of file lapi.cpp.
References api_check, api_incr_top, hvalue, index2addr(), lua_lock, lua_unlock, luaH_next(), t, lua_State::top, and ttistable.
Referenced by checktab(), findfield(), lua_kernel_base::get_attribute_names(), lua_kernel_base::get_global_var_names(), lua_callable::get_inputs(), lua_callable::get_value(), intf_name_generator(), lua_stringx::intf_str_join_map(), lua_kernel_base::lua_kernel_base(), luaB_next(), and luaW_toconfig().
LUA_API int() lua_pcallk | ( | lua_State * | L, |
int | nargs, | ||
int | nresults, | ||
int | errfunc, | ||
lua_KContext | ctx, | ||
lua_KFunction | k | ||
) |
Definition at line 948 of file lapi.cpp.
References adjustresults, lua_State::allowhook, api_check, api_checknelems, api_checkstackindex, CallInfo::c, CallInfo::callstatus, checkresults, lua_State::ci, CIST_YPCALL, lua_State::errfunc, CallInfo::extra, f_call(), CallS::func, index2addr(), isLua, lua_lock, LUA_OK, lua_unlock, luaD_call(), luaD_pcall(), lua_State::nny, CallS::nresults, savestack, setoah, lua_State::status, lua_State::top, and CallInfo::u.
Referenced by luaB_pcall(), and luaB_xpcall().
Definition at line 557 of file lapi.cpp.
References api_incr_top, lua_lock, lua_unlock, setbvalue, and lua_State::top.
Referenced by aux_lines(), ai::cfun_ai_get_leader_goal(), ai::cfun_ai_get_simple_targeting(), ai::cfun_ai_get_support_villages(), ai::cfun_ai_is_dst_src_enemy_valid(), ai::cfun_ai_is_dst_src_valid(), ai::cfun_ai_is_src_dst_enemy_valid(), ai::cfun_ai_is_src_dst_valid(), cfun_wml_condition(), finishpcall(), ai::lua_object< T >::from_type(), impl_color_equality(), impl_track_eq(), lua_common::impl_tstring_eq(), lua_common::impl_tstring_le(), lua_common::impl_tstring_lt(), impl_unit_attack_equal(), impl_unit_attack_match(), impl_unit_equality(), impl_unit_status_get(), impl_unit_type_equal(), intf_compare_versions(), intf_eval_conditional(), game_lua_kernel::intf_fire_event(), game_lua_kernel::intf_fire_wml_menu_item(), game_lua_kernel::intf_get_fog_or_shroud(), game_lua_kernel::intf_get_terrain_info(), intf_get_viewing_side(), lua_fileops::intf_have_file(), game_lua_kernel::intf_is_enemy(), game_lua_kernel::intf_is_skipping_messages(), game_lua_kernel::intf_match_location(), game_lua_kernel::intf_match_side(), game_lua_kernel::intf_match_unit(), lua_map_location::intf_tiles_adjacent(), game_lua_kernel::intf_unit_ability(), game_lua_kernel::intf_view_locked(), lua_wml::intf_wml_equal(), lua_wml::intf_wml_matches_filter(), lua_wml::intf_wml_valid(), ll_require(), lookforfunc(), ai::lua_ai_load::lua_ai_load(), lua_check_impl::lua_push(), luaB_collectgarbage(), luaB_coresume(), luaB_corunning(), luaB_pcall(), luaB_rawequal(), luaB_xpcall(), luaB_yieldable(), luaL_execresult(), luaL_fileresult(), luaW_pushsimweapon(), luaW_pushtstring(), math_ult(), os_execute(), ai::push_attack_analysis(), game_lua_kernel::push_builtin_effect(), setboolfield(), settabsb(), lua_gui2::show_message_box(), ai::transform_ai_action(), and ai::lua_ai_load::~lua_ai_load().
LUA_API void() lua_pushcclosure | ( | lua_State * | L, |
lua_CFunction | fn, | ||
int | n | ||
) |
Definition at line 532 of file lapi.cpp.
References api_check, api_checknelems, api_incr_top, CClosure::f, lua_lock, lua_unlock, luaC_checkGC, luaF_newCclosure(), MAXUPVAL, n, setclCvalue, setfvalue, setobj2n, lua_State::top, and CClosure::upvalue.
Referenced by aux_lines(), createsearcherstable(), ai::generate_and_push_ai_table(), gmatch(), ai::impl_ai_get(), lua_common::impl_vconfig_ipairs(), lua_common::impl_vconfig_pairs(), luaB_cowrap(), luaL_setfuncs(), lua_stringx::luaW_open(), ai::push_attack_analysis(), game_lua_kernel::push_builtin_effect(), lua_cpp::push_closure(), push_component(), game_lua_kernel::set_wml_action(), and game_lua_kernel::set_wml_condition().
Definition at line 519 of file lapi.cpp.
References lua_lock, lua_unlock, luaC_checkGC, and luaO_pushvfstring().
Referenced by checkoption(), db_getinfo(), errfile(), f_tostring(), intf_find_path(), loadfunc(), luaL_checkoption(), luaL_fileresult(), luaL_loadfilex(), luaL_tolstring(), luaL_traceback(), luaL_where(), luaW_type_error(), pushfuncname(), pushutfchar(), searcher_Croot(), searcher_preload(), searchpath(), setpath(), and typeerror().
LUA_API void() lua_pushinteger | ( | lua_State * | L, |
lua_Integer | n | ||
) |
Definition at line 466 of file lapi.cpp.
References api_incr_top, lua_lock, lua_unlock, setivalue, and lua_State::top.
Referenced by aux_lines(), byteoffset(), ai::cfun_ai_get_recruitment_pattern(), ai::cfun_ai_get_targets(), cfun_exec_candidate_action(), codepoint(), lua_pathfind_cost_calculator::cost(), db_gethook(), f_seek(), ai::unit_advancements_aspect::get_advancements(), get_new_thread(), lua_callable::get_value(), hookf(), ai::impl_ai_aspect_get(), ai::impl_ai_get(), impl_music_get(), impl_music_len(), impl_unit_attacks_len(), lua_common::impl_vconfig_ipairs(), lua_common::impl_vconfig_ipairs_iter(), lua_common::impl_vconfig_size(), intf_default_generate_height_map(), lua_map_location::intf_distance_between(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_find_vacant_tile(), intf_get_image_size(), lua_map_location::intf_get_in_basis_N_NE(), game_lua_kernel::intf_get_locations(), game_lua_kernel::intf_get_map_size(), game_lua_kernel::intf_get_max_liminal_bonus(), game_lua_kernel::intf_get_mouseover_tile(), game_lua_kernel::intf_get_selected_tile(), game_lua_kernel::intf_get_terrain_info(), game_lua_kernel::intf_get_time_of_day(), intf_get_time_stamp(), intf_get_viewing_side(), game_lua_kernel::intf_get_village_owner(), game_lua_kernel::intf_get_villages(), intf_show_dialog(), intf_unit_defense(), intf_unit_jamming_cost(), intf_unit_movement_cost(), intf_unit_resistance(), intf_unit_vision_cost(), ipairsaux(), iter_aux(), iter_codes(), luaB_collectgarbage(), luaB_ipairs(), luaB_rawlen(), luaB_select(), luaB_tonumber(), luaL_execresult(), luaL_fileresult(), luaL_unref(), luaopen_math(), luaW_push_locationset(), luaW_pushfaivariant(), luaW_pushlocation(), luaW_pushtstring(), math_abs(), math_fmod(), math_random(), math_toint(), math_type(), pack(), pairsmeta(), ai::push_attack_analysis(), ai::push_move_map(), push_onecapture(), pushnumint(), game_lua_kernel::run_filter(), setfield(), settabsi(), lua_gui2::show_menu(), lua_gui2::show_message_dialog(), str_byte(), str_find_aux(), str_gsub(), str_len(), str_packsize(), str_unpack(), ai::lua_object< T >::to_type(), ai::transform_ai_action(), and utflen().
Definition at line 565 of file lapi.cpp.
References api_incr_top, lua_lock, lua_unlock, setpvalue, and lua_State::top.
Referenced by addtoclib(), ai::lua_ai_context::create(), db_upvalueid(), ai::generate_and_push_ai_table(), get_new_thread(), ai::impl_ai_get(), luaW_clearwindowtable(), luaW_pushwidgettable(), luaW_pushwidgettablecontainer(), luaW_pushwindowtable(), ai::push_attack_analysis(), push_component(), game_lua_kernel::set_wml_action(), and game_lua_kernel::set_wml_condition().
Definition at line 479 of file lapi.cpp.
References api_incr_top, getstr, lua_lock, lua_unlock, luaC_checkGC, luaS_new(), luaS_newlstr(), setsvalue2s, and lua_State::top.
Referenced by add_value(), ai::cfun_ai_get_leader_goal(), ai::lua_object< T >::from_type(), lua_kernel_base::get_attribute_names(), lua_callable::get_value(), impl_formula_tostring(), impl_race_get(), impl_unit_type_get(), impl_unit_type_next(), lua_common::impl_vconfig_ipairs_iter(), lua_common::impl_vconfig_pairs_iter(), lua_map_location::intf_get_relative_dir(), lua_stringx::intf_str_trim(), intf_switch_ai(), ll_require(), loadfunc(), lua_check_impl::lua_push(), luaL_pushresult(), luaL_tolstring(), luaopen_utf8(), luaW_getglobal(), luaW_pushfaivariant(), luaW_table_get_def(), luaW_table_set(), push_onecapture(), pushnexttemplate(), searcher_Croot(), lua_gui2::show_message_dialog(), str_sub(), and str_unpack().
Definition at line 450 of file lapi.cpp.
References api_incr_top, lua_lock, lua_unlock, setnilvalue, and lua_State::top.
Referenced by byteoffset(), checktab(), db_gethook(), db_getinfo(), db_getlocal(), db_getmetatable(), db_getuservalue(), findfield(), ai::lua_object< T >::from_type(), g_read(), lua_kernel_base::get_attribute_names(), lua_kernel_base::get_global_var_names(), lua_callable::get_inputs(), ai::typesafe_aspect< attacks_vector >::get_lua(), lua_callable::get_value(), hookf(), impl_music_get(), impl_slocs_get(), impl_unit_type_pairs(), intf_load(), intf_name_generator(), lua_stringx::intf_str_join_map(), io_lines(), io_noclose(), io_type(), ll_loadlib(), ll_searchpath(), load_aux(), lua_kernel_base::lua_kernel_base(), luaB_getmetatable(), luaB_next(), luaB_tonumber(), luaL_execresult(), luaL_fileresult(), luaW_clearwindowtable(), luaW_pushfaivariant(), luaW_pushtstring(), luaW_pushvariable(), luaW_pushweapon(), luaW_toconfig(), mapgen_lua_kernel::mapgen_lua_kernel(), math_toint(), math_type(), pairsmeta(), read_number(), lua_gui2::show_message_dialog(), special_locations_pairs(), str_find_aux(), str_pack(), tremove(), utflen(), ai::lua_ai_action_handler::~lua_ai_action_handler(), ai::lua_ai_context::~lua_ai_context(), and ai::lua_ai_load::~lua_ai_load().
LUA_API void() lua_pushnumber | ( | lua_State * | L, |
lua_Number | n | ||
) |
Definition at line 458 of file lapi.cpp.
References api_incr_top, lua_lock, lua_unlock, setfltvalue, and lua_State::top.
Referenced by ai::cfun_ai_get_aggression(), ai::cfun_ai_get_caution(), ai::cfun_ai_get_leader_aggression(), ai::cfun_ai_get_leader_value(), ai::cfun_ai_get_scout_village_targeting(), ai::cfun_ai_get_suitable_keep(), ai::cfun_ai_get_targets(), ai::cfun_ai_get_village_value(), ai::cfun_ai_get_villages_per_scout(), ai::cfun_attack_rating(), checktab(), lua_pathfind_cost_calculator::cost(), ai::lua_object< T >::from_type(), lua_rng::impl_rng_draw(), lua_common::impl_tstring_len(), impl_unit_attacks_iter(), impl_unit_attacks_next(), impl_unit_type_count(), lua_stringx::intf_parse_range(), lua_fileops::intf_read_file(), game_lua_kernel::intf_skip_messages(), intf_sound_volume(), game_lua_kernel::intf_zoom(), lua_check_impl::lua_push(), luaB_collectgarbage(), luaopen_math(), luaW_pushfaivariant(), luaW_pushsimdata(), luaW_pushsimweapon(), luaW_pushtstring(), math_abs(), math_acos(), math_asin(), math_atan(), math_cos(), math_deg(), math_exp(), math_fmod(), math_log(), math_modf(), math_rad(), math_random(), math_sin(), math_sqrt(), math_tan(), math_type(), os_clock(), os_difftime(), ai::push_attack_analysis(), pushnumint(), special_locations_len(), and str_unpack().
Definition at line 491 of file lapi.cpp.
References api_incr_top, getstr, lua_lock, lua_unlock, luaC_checkGC, luaS_new(), s, setnilvalue, setsvalue2s, and lua_State::top.
Referenced by auxupvalue(), ai::cfun_ai_get_grouping(), ai::cfun_ai_get_recruitment_pattern(), ai::cfun_ai_get_targets(), game_lua_kernel::cfun_builtin_effect(), checkfield(), checkload(), db_gethook(), db_getlocal(), db_sethook(), db_setlocal(), findloader(), game_lua_kernel::game_lua_kernel(), hookf(), ai::impl_ai_aspect_set(), ai::impl_ai_get(), impl_name_generator_call(), lua_rng::impl_rng_destroy(), impl_side_get(), lua_common::impl_tstring_tostring(), impl_unit_type_new(), impl_unit_type_next(), lua_common::impl_vconfig_get(), lua_cpp::intf_cleanup(), game_lua_kernel::intf_create_animator(), intf_debug_ai(), intf_describe_plugins(), lua_map_location::intf_distance_between(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), lua_map_location::intf_get_relative_dir(), game_lua_kernel::intf_get_terrain(), intf_get_terrain(), game_lua_kernel::intf_get_terrain_info(), game_lua_kernel::intf_get_time_of_day(), intf_get_traits(), intf_name_generator(), lua_kernel_base::intf_require(), lua_map_location::intf_rotate_right_around_center(), lua_map_location::intf_tiles_adjacent(), lua_cpp::intf_tostring(), lua_map_location::intf_vector_diff(), lua_map_location::intf_vector_sum(), lua_wml::intf_wml_tostring(), ll_loadlib(), ll_require(), lua_kernel_base::load_core(), game_lua_kernel::load_game(), lua_kernel_base::load_package(), application_lua_kernel::load_script_from_file(), ai::lua_ai_load::lua_ai_load(), lua_kernel_base::lua_kernel_base(), luaB_type(), luaL_execresult(), luaL_fileresult(), luaL_getmetafield(), luaL_newmetatable(), luaL_requiref(), luaL_tolstring(), luaW_checkrace(), luaW_filltable(), lua_gui2::luaW_open(), luaW_pushfaivariant(), luaW_pushrace(), luaW_pushsimweapon(), luaW_pushtstring(), luaW_tableget(), os_getenv(), os_setlocale(), os_tmpname(), ai::push_attack_analysis(), game_lua_kernel::push_builtin_effect(), push_component(), push_locations_table(), ai::push_movements(), pushglobalfuncname(), lua_units::register_attacks_metatables(), lua_common::register_gettext_metatable(), lua_cpp::register_metatable(), lua_race::register_metatable(), lua_widget::register_metatable(), lua_unit_type::register_metatable(), lua_formula_bridge::register_metatables(), lua_colors::register_metatables(), lua_terrainmap::register_metatables(), lua_units::register_metatables(), lua_terrainfilter::register_metatables(), lua_preferences::register_table(), lua_unit_type::register_table(), lua_audio::register_table(), lua_common::register_tstring_metatable(), lua_common::register_vconfig_metatable(), game_lua_kernel::run_event(), application_lua_kernel::thread::run_script(), searcher_Croot(), game_lua_kernel::set_wml_action(), game_lua_kernel::set_wml_condition(), setpath(), settabss(), special_locations_newindex(), special_locations_next(), ai::lua_object< T >::to_type(), ai::transform_ai_action(), and ai::lua_ai_load::~lua_ai_load().
Definition at line 573 of file lapi.cpp.
References api_incr_top, G, lua_lock, lua_unlock, setthvalue, and lua_State::top.
Referenced by db_gethook(), db_sethook(), hookf(), and luaB_corunning().
Definition at line 237 of file lapi.cpp.
References api_incr_top, index2addr(), lua_lock, lua_unlock, setobj2s, and lua_State::top.
Referenced by add_value(), addtoclib(), game_lua_kernel::apply_effect(), auxsort(), lua_pathfind_cost_calculator::cost(), ai::lua_ai_context::create(), ai::lua_ai_action_handler::create(), createmeta(), createmetatable(), createsearcherstable(), createstdfile(), db_getinfo(), db_getlocal(), db_getregistry(), db_sethook(), db_traceback(), f_write(), lua_mapgen::filter::filter(), finishpcall(), g_iofile(), ai::generate_and_push_ai_state(), generic_reader(), lua_kernel_base::get_attribute_names(), lua_callable::get_inputs(), get_new_thread(), ai::impl_ai_get(), impl_side_get(), lua_stringx::impl_str_index(), game_lua_kernel::impl_theme_items_get(), game_lua_kernel::impl_theme_items_set(), impl_unit_attacks_iter(), impl_unit_attacks_next(), impl_unit_type_pairs(), lua_common::impl_vconfig_ipairs(), lua_common::impl_vconfig_pairs(), lua_kernel_base::interactive_run(), intf_describe_plugins(), intf_do_unsynced(), intf_load(), lua_kernel_base::intf_print(), lua_kernel_base::intf_require(), intf_set_dialog_callback(), intf_show_dialog(), game_lua_kernel::intf_skip_messages(), lua_stringx::intf_str_format(), lua_stringx::intf_str_join_map(), io_readline(), iter_codes(), ll_require(), load_aux(), lua_rng::load_tables(), luaB_cocreate(), luaB_error(), luaB_ipairs(), luaB_print(), luaB_xpcall(), luaL_callmeta(), luaL_getsubtable(), luaL_newmetatable(), luaL_requiref(), luaL_setfuncs(), luaL_tolstring(), luaopen_base(), luaopen_package(), luaW_pushslocs(), luaW_pushwidgettable(), luaW_pushwidgettablecontainer(), luaW_pushwindowtable(), luaW_to_locationset(), math_max(), math_min(), pairsmeta(), game_lua_kernel::push_builtin_effect(), push_unit_attacks_table(), lua_cpp::register_metatable(), lua_preferences::register_table(), game_lua_kernel::run_filter(), lua_cpp::set_functions(), sort_comp(), special_locations_pairs(), tmove(), WIDGET_GETTER(), and WIDGET_SETTER().
Definition at line 508 of file lapi.cpp.
References lua_lock, lua_unlock, luaC_checkGC, and luaO_pushvfstring().
Referenced by luaL_error().
Definition at line 295 of file lapi.cpp.
References index2addr(), isvalid, and luaV_rawequalobj.
Referenced by findfield(), luaB_rawequal(), and luaL_testudata().
Definition at line 647 of file lapi.cpp.
References api_check, hvalue, index2addr(), lua_lock, lua_unlock, luaH_get(), setobj2s, t, lua_State::top, ttistable, and ttnov.
Referenced by checkfield(), db_gethook(), get_new_thread(), hookf(), ai::impl_ai_get(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), lua_kernel_base::intf_require(), luaB_rawget(), luaL_getmetafield(), luaL_tolstring(), luaW_checkrace(), luaW_getglobal(), luaW_getwidgetcallback(), luaW_pushwidgettable(), luaW_pushwidgettablecontainer(), luaW_pushwindowtable(), luaW_setwidgetcallback(), game_lua_kernel::set_wml_action(), game_lua_kernel::set_wml_condition(), and ai::lua_object< T >::to_type().
LUA_API int() lua_rawgeti | ( | lua_State * | L, |
int | idx, | ||
lua_Integer | n | ||
) |
Definition at line 658 of file lapi.cpp.
References api_check, api_incr_top, hvalue, index2addr(), lua_lock, lua_unlock, luaH_getint(), setobj2s, t, lua_State::top, ttistable, and ttnov.
Referenced by ai::call_lua_filter_fcn(), findloader(), gctm(), ai::unit_advancements_aspect::get_advancements(), ai::lua_ai_context::get_arguments(), ai::lua_ai_context::get_persistent_data(), ai::lua_ai_action_handler::handle(), impl_add_animation(), impl_unit_attacks_get(), impl_unit_attacks_len(), impl_unit_attacks_set(), impl_unit_status_get(), impl_unit_status_set(), impl_unit_variables_get(), impl_unit_variables_set(), game_lua_kernel::intf_get_time_of_day(), game_lua_kernel::intf_terrain_mask(), load_fake_units(), ai::lua_ai_load::lua_ai_load(), lua_check_impl::lua_check(), luaL_ref(), luaL_unref(), luaW_toconfig(), luaW_tolocation(), luaW_toslocs(), read_rules_vector(), ai::lua_ai_context::set_arguments(), ai::lua_ai_context::set_persistent_data(), lua_gui2::show_message_dialog(), and ai::lua_object< T >::to_type().
Definition at line 670 of file lapi.cpp.
References api_check, api_incr_top, cast, hvalue, index2addr(), lua_lock, lua_unlock, luaH_get(), setobj2s, setpvalue, t, lua_State::top, ttistable, and ttnov.
Referenced by addtoclib(), checkclib(), db_gethook(), db_sethook(), and hookf().
Definition at line 392 of file lapi.cpp.
References hvalue, index2addr(), LUA_TLNGSTR, LUA_TSHRSTR, LUA_TTABLE, LUA_TUSERDATA, luaH_getn(), tsvalue, ttype, and uvalue.
Referenced by ai::cfun_ai_get_leader_goal(), ai::lua_ai_action_handler::create(), ai::lua_object< T >::from_type(), ai::generate_and_push_ai_state(), get_new_thread(), lua_callable::get_value(), impl_add_animation(), game_lua_kernel::intf_terrain_mask(), load_fake_units(), lua_check_impl::lua_check(), luaB_rawlen(), luaL_ref(), luaW_pushfaivariant(), luaW_to_locationset(), luaW_toconfig(), read_line(), read_rules_vector(), lua_gui2::show_message_dialog(), ai::lua_object< T >::to_type(), and filter_impl::~filter_impl().
Definition at line 801 of file lapi.cpp.
References api_check, api_checknelems, hvalue, index2addr(), invalidateTMcache, lua_lock, lua_unlock, luaC_barrierback, luaH_set(), setobj2t, lua_State::top, and ttistable.
Referenced by ai::cfun_ai_get_targets(), db_sethook(), game_lua_kernel::game_lua_kernel(), get_new_thread(), ai::impl_ai_get(), impl_race_get(), game_lua_kernel::impl_theme_items_get(), game_lua_kernel::impl_theme_items_set(), impl_unit_type_get(), intf_debug_ai(), intf_get_traits(), ai::lua_ai_load::lua_ai_load(), luaB_rawset(), luaW_clearwindowtable(), lua_gui2::luaW_open(), luaW_pushwidgettable(), luaW_pushwidgettablecontainer(), luaW_pushwindowtable(), luaW_setwidgetcallback(), ai::push_attack_analysis(), game_lua_kernel::push_builtin_effect(), push_component(), push_locations_table(), ai::push_movements(), lua_common::register_vconfig_metatable(), game_lua_kernel::set_wml_action(), game_lua_kernel::set_wml_condition(), and ai::lua_ai_load::~lua_ai_load().
LUA_API void() lua_rawseti | ( | lua_State * | L, |
int | idx, | ||
lua_Integer | n | ||
) |
Definition at line 817 of file lapi.cpp.
References api_check, api_checknelems, hvalue, index2addr(), lua_lock, lua_unlock, luaC_barrierback, luaH_setint(), lua_State::top, and ttistable.
Referenced by addtoclib(), ai::cfun_ai_get_attacks(), ai::cfun_ai_get_leader_goal(), ai::lua_ai_action_handler::create(), createsearcherstable(), ai::lua_object< T >::from_type(), ai::generate_and_push_ai_state(), ai::impl_ai_aspect_get(), impl_side_get(), lua_common::impl_vconfig_get(), lua_common::impl_vconfig_ipairs_iter(), intf_default_generate_height_map(), game_lua_kernel::intf_find_cost_map(), game_lua_kernel::intf_find_path(), intf_find_path(), game_lua_kernel::intf_find_reach(), game_lua_kernel::intf_get_locations(), game_lua_kernel::intf_get_recall_units(), game_lua_kernel::intf_get_sides(), game_lua_kernel::intf_get_units(), game_lua_kernel::intf_get_villages(), game_lua_kernel::load_game(), lua_check_impl::lua_push(), luaL_ref(), luaL_unref(), luaW_filltable(), luaW_push_locationset(), luaW_pushlocation(), luaW_pushsimdata(), luaW_pushslocs(), luaW_pushwidgettable(), ai::push_move_map(), ai::push_movements(), push_unit_attacks_table(), application_lua_kernel::thread::run_script(), ai::lua_ai_action_handler::~lua_ai_action_handler(), and ai::lua_ai_context::~lua_ai_context().
Definition at line 830 of file lapi.cpp.
References api_check, api_checknelems, cast, hvalue, index2addr(), lua_lock, lua_unlock, luaC_barrierback, luaH_set(), setobj2t, setpvalue, lua_State::top, and ttistable.
Referenced by createclibstable(), and db_sethook().
Definition at line 648 of file ldo.cpp.
References api_checknelems, lua_State::base_ci, cast_byte, lua_State::ci, errorstatus, lua_assert, LUA_ERRRUN, lua_lock, LUA_OK, lua_unlock, LUA_YIELD, luaD_rawrunprotected(), LUAI_MAXCCALLS, luai_userstateresume, lua_State::nCcalls, lua_State::nny, recover(), resume(), resume_error(), seterrorobj(), lua_longjmp::status, lua_State::status, CallInfo::top, lua_State::top, and unroll().
Referenced by auxresume(), and application_lua_kernel::thread::run_script().
Definition at line 207 of file lapi.cpp.
References api_check, api_checkstackindex, index2addr(), lua_lock, lua_unlock, n, p, reverse(), t, and lua_State::top.
Referenced by aux_lines(), db_getlocal(), lua_kernel_base::intf_dofile(), luaB_xpcall(), luaW_setwidgetcallback(), and treatstackoption().
Definition at line 777 of file lapi.cpp.
References auxsetstr(), index2addr(), and lua_lock.
Referenced by addtoclib(), application_lua_kernel::application_lua_kernel(), ai::lua_ai_context::create(), createclibstable(), createmeta(), createmetatable(), createsearcherstable(), createstdfile(), db_sethook(), g_iofile(), game_lua_kernel::game_lua_kernel(), ai::generate_and_push_ai_state(), ai::generate_and_push_ai_table(), ai::impl_ai_aspect_get(), ai::impl_ai_get(), lua_common::impl_vconfig_get(), ai::lua_ai_context::init(), game_lua_kernel::initialize(), lua_kernel_base::interactive_run(), game_lua_kernel::intf_create_animator(), game_lua_kernel::intf_get_terrain_info(), game_lua_kernel::intf_get_time_of_day(), lua_fileops::intf_read_file(), ll_require(), lua_rng::load_tables(), lua_kernel_base::lua_kernel_base(), luaL_getsubtable(), luaL_newmetatable(), luaL_requiref(), luaL_setfuncs(), luaL_tolstring(), luaopen_base(), luaopen_math(), luaopen_package(), luaopen_utf8(), luaW_filltable(), lua_stringx::luaW_open(), luaW_pushrace(), luaW_pushracetable(), luaW_pushsimdata(), luaW_pushsimweapon(), mapgen_lua_kernel::mapgen_lua_kernel(), newbox(), pack(), push_error_handler(), lua_units::register_attacks_metatables(), lua_common::register_gettext_metatable(), lua_cpp::register_metatable(), lua_race::register_metatable(), lua_widget::register_metatable(), lua_unit_type::register_metatable(), lua_formula_bridge::register_metatables(), lua_colors::register_metatables(), lua_terrainmap::register_metatables(), lua_units::register_metatables(), lua_terrainfilter::register_metatables(), lua_preferences::register_table(), lua_unit_type::register_table(), lua_audio::register_table(), lua_common::register_tstring_metatable(), lua_common::register_vconfig_metatable(), ai::lua_ai_context::set_arguments(), lua_cpp::set_functions(), ai::lua_ai_context::set_persistent_data(), setboolfield(), setfield(), setpath(), settabsb(), settabsi(), settabss(), ai::transform_ai_action(), treatstackoption(), and ai::lua_ai_context::update_state().
Definition at line 759 of file lapi.cpp.
References auxsetstr(), G, hvalue, lua_lock, LUA_RIDX_GLOBALS, and luaH_getint().
Referenced by application_lua_kernel::application_lua_kernel(), game_lua_kernel::game_lua_kernel(), lua_rng::load_tables(), ai::lua_ai_load::lua_ai_load(), lua_kernel_base::lua_kernel_base(), luaL_requiref(), luaopen_table(), and ai::lua_ai_load::~lua_ai_load().
Definition at line 81 of file ldebug.cpp.
References lua_State::basehookcount, cast_byte, lua_State::ci, lua_State::hook, lua_State::hookmask, isLua, CallInfo::l, lua_State::oldpc, resethookcount, and CallInfo::u.
Referenced by db_sethook().
LUA_API void() lua_seti | ( | lua_State * | L, |
int | idx, | ||
lua_Integer | n | ||
) |
Definition at line 783 of file lapi.cpp.
References api_checknelems, api_incr_top, index2addr(), lua_lock, lua_unlock, luaH_getint(), luaV_fastset, luaV_finishset(), setivalue, t, and lua_State::top.
Referenced by pack(), set2(), tinsert(), tmove(), and tremove().
Definition at line 196 of file ldebug.cpp.
References findlocal(), lua_Debug::i_ci, lua_lock, lua_unlock, name, setobjs2s, swapextra(), and lua_State::top.
Referenced by db_setlocal().
Definition at line 846 of file lapi.cpp.
References api_check, api_checknelems, G, gcvalue, hvalue, index2addr(), lua_lock, LUA_TTABLE, LUA_TUSERDATA, lua_unlock, luaC_checkfinalizer(), luaC_objbarrier, lua_State::top, ttisnil, ttistable, ttnov, and uvalue.
Referenced by createclibstable(), createmetatable(), db_sethook(), db_setmetatable(), game_lua_kernel::game_lua_kernel(), ai::generate_and_push_ai_table(), ai::impl_ai_get(), impl_race_get(), lua_common::impl_vconfig_ipairs(), lua_common::impl_vconfig_pairs(), game_lua_kernel::intf_create_animator(), game_lua_kernel::intf_get_end_level_data(), intf_name_generator(), ll_require(), lua_kernel_base::lua_kernel_base(), luaB_setmetatable(), luaL_setmetatable(), lua_stringx::luaW_open(), newbox(), game_lua_kernel::push_builtin_effect(), push_locations_table(), lua_colors::register_metatables(), lua_preferences::register_table(), lua_unit_type::register_table(), and lua_audio::register_table().
Definition at line 766 of file lapi.cpp.
References api_checknelems, index2addr(), lua_lock, lua_unlock, luaV_settable, t, and lua_State::top.
Referenced by ai::cfun_ai_get_recruitment_pattern(), ai::impl_ai_aspect_get(), lua_kernel_base::intf_require(), lua_check_impl::lua_push(), luaL_tolstring(), luaW_pushfaivariant(), luaW_table_set(), ai::push_move_map(), and application_lua_kernel::thread::run_script().
Definition at line 172 of file lapi.cpp.
References api_check, lua_State::ci, CallInfo::func, lua_lock, lua_unlock, setnilvalue, and lua_State::top.
Referenced by application_lua_kernel::application_lua_kernel(), game_lua_kernel::apply_effect(), ai::cfun_attack_rating(), db_debug(), db_sethook(), db_setlocal(), db_setmetatable(), db_setuservalue(), lua_callable::do_compare(), game_lua_kernel::game_lua_kernel(), ai::lua_ai_context::get_arguments(), lua_kernel_base::get_attribute_names(), lua_kernel_base::get_global_var_names(), ai::lua_ai_context::get_persistent_data(), gmatch(), ai::lua_ai_action_handler::handle(), game_lua_kernel::initialize(), lua_kernel_base::interactive_run(), game_lua_kernel::intf_get_recall_units(), game_lua_kernel::intf_get_sides(), game_lua_kernel::intf_get_units(), lua_stringx::intf_str_join_map(), io_readline(), ll_require(), lua_kernel_base::load_core(), load_fake_units(), lua_kernel_base::lua_kernel_base(), luaB_assert(), luaB_dofile(), luaB_error(), luaB_load(), luaB_next(), luaB_rawget(), luaB_rawset(), luaB_setmetatable(), luaB_tonumber(), luaL_loadfilex(), luaW_toconfig(), mapgen_lua_kernel::mapgen_lua_kernel(), math_ceil(), math_floor(), math_modf(), os_time(), pushglobalfuncname(), ai::lua_ai_context::set_arguments(), ai::lua_ai_context::set_persistent_data(), sort(), str_dump(), ai::lua_object< T >::to_type(), and ai::unit_advancements_aspect::unit_advancements_aspect().
Definition at line 1236 of file lapi.cpp.
References api_checknelems, aux_upvalue(), index2addr(), lua_lock, lua_unlock, luaC_barrier, luaC_upvalbarrier, name, setobj, and lua_State::top.
Referenced by auxupvalue(), lua_kernel_base::interactive_run(), intf_load(), ll_require(), load_aux(), and lua_kernel_base::throwing_run().
Definition at line 886 of file lapi.cpp.
References api_check, api_checknelems, gcvalue, index2addr(), lua_lock, lua_unlock, luaC_barrier, setuservalue, lua_State::top, ttisfulluserdata, and uvalue.
Referenced by db_setuservalue().
Definition at line 1031 of file lapi.cpp.
References lua_State::status.
Referenced by auxresume(), application_lua_kernel::thread::is_running(), application_lua_kernel::load_script_from_string(), luaB_costatus(), application_lua_kernel::thread::run_script(), and application_lua_kernel::thread::status().
Definition at line 337 of file lapi.cpp.
References api_incr_top, luaO_str2num(), and lua_State::top.
Referenced by luaB_tonumber(), and read_number().
Definition at line 367 of file lapi.cpp.
References index2addr(), and l_isfalse.
Referenced by add_value(), getboolfield(), io_readline(), ll_require(), luaB_assert(), luaL_requiref(), luaL_tolstring(), luaW_toboolean(), luaW_totstring(), noenv(), os_exit(), sort_comp(), str_dump(), and str_find_aux().
LUA_API lua_CFunction() lua_tocfunction | ( | lua_State * | L, |
int | idx | ||
) |
Definition at line 404 of file lapi.cpp.
References clCvalue, fvalue, index2addr(), ttisCclosure, and ttislcf.
LUA_API lua_Integer() lua_tointegerx | ( | lua_State * | L, |
int | idx, | ||
int * | isnum | ||
) |
Definition at line 356 of file lapi.cpp.
References index2addr(), and tointeger.
Referenced by getfield(), lua_check_impl::lua_to_or_default(), luaL_checkinteger(), luaL_len(), and math_toint().
Definition at line 373 of file lapi.cpp.
References cvt2str, index2addr(), lua_lock, lua_unlock, luaC_checkGC, luaO_tostring(), svalue, ttisstring, and vslen.
Referenced by add_s(), addliteral(), generic_reader(), luaB_load(), luaB_print(), luaB_tonumber(), luaL_addvalue(), luaL_checklstring(), luaL_tolstring(), luaW_tostring(), and luaW_tostring_or_default().
LUA_API lua_Number() lua_tonumberx | ( | lua_State * | L, |
int | idx, | ||
int * | isnum | ||
) |
Definition at line 345 of file lapi.cpp.
References index2addr(), n, and tonumber.
Referenced by game_lua_kernel::intf_set_time_of_day(), lua_check_impl::lua_to_or_default(), luaL_checknumber(), and luaW_tolocation().
Definition at line 429 of file lapi.cpp.
References cast, clCvalue, clLvalue, fvalue, getudatamem, hvalue, index2addr(), LUA_TCCL, LUA_TLCF, LUA_TLCL, LUA_TLIGHTUSERDATA, LUA_TTABLE, LUA_TTHREAD, LUA_TUSERDATA, pvalue, thvalue, ttype, and uvalue.
Referenced by lua_callable::do_compare(), and luaL_tolstring().
Definition at line 423 of file lapi.cpp.
References index2addr(), thvalue, and ttisthread.
Referenced by getco(), getthread(), and luaB_auxwrap().
Definition at line 413 of file lapi.cpp.
References getudatamem, index2addr(), LUA_TLIGHTUSERDATA, LUA_TUSERDATA, pvalue, ttnov, and uvalue.
Referenced by ai::cfun_attack_rating(), cfun_exec_candidate_action(), cfun_exec_stage(), game_lua_kernel::cfun_wml_action(), cfun_wml_condition(), checkclib(), gctm(), ai::get_engine(), getiofile(), gmatch_aux(), impl_color_collect(), impl_end_level_data_collect(), impl_end_level_data_get(), game_lua_kernel::impl_end_level_data_set(), impl_formula_collect(), impl_formula_tostring(), lua_common::impl_gettext(), lua_common::impl_gettext_tostr(), impl_name_generator_call(), impl_name_generator_collect(), impl_terainmap_collect(), lua_common::impl_tstring_collect(), lua_common::impl_tstring_eq(), lua_common::impl_tstring_len(), lua_common::impl_tstring_tostring(), impl_unit_collect(), lua_common::impl_vconfig_collect(), lua_common::impl_vconfig_get(), lua_common::impl_vconfig_ipairs_collect(), lua_common::impl_vconfig_pairs_collect(), lua_common::impl_vconfig_size(), internal_get_unit(), io_readline(), luaL_testudata(), luaW_check_mgfilter(), LuaW_checkcolor(), luaW_checkterrainmap(), luaW_to_mgfilter(), luaW_toterrainmap(), and resizebox().
Definition at line 251 of file lapi.cpp.
References index2addr(), isvalid, LUA_TNONE, and ttnov.
Referenced by addliteral(), game_lua_kernel::apply_effect(), checktab(), mapgen_lua_kernel::create_map(), mapgen_lua_kernel::create_scenario(), db_getuservalue(), db_setmetatable(), findfield(), g_read(), g_write(), lua_kernel_base::get_attribute_names(), lua_callable::get_inputs(), lua_rng::impl_rng_destroy(), lua_stringx::impl_str_index(), lua_cpp::intf_cleanup(), lua_map_location::intf_get_direction(), lua_wml::intf_load_wml(), intf_name_generator(), application_lua_kernel::load_script_from_file(), application_lua_kernel::load_script_from_string(), luaB_auxwrap(), luaB_error(), luaB_rawlen(), luaB_select(), luaB_setmetatable(), luaB_tonumber(), luaB_type(), luaL_checkany(), luaL_checktype(), luaL_tolstring(), luaW_checkvariable(), luaW_toconfig(), luaW_tofaivariant(), luaW_toscalar(), luaW_totstring(), luaW_tovconfig(), math_type(), lua_kernel_base::protected_call(), lua_gui2::show_message_dialog(), str_gsub(), lua_common::tstring_concat_aux(), typeerror(), and WIDGET_SETTER().
Definition at line 257 of file lapi.cpp.
References api_check, LUA_NUMTAGS, LUA_TNONE, ttypename, and UNUSED.
Referenced by game_lua_kernel::apply_effect(), mapgen_lua_kernel::create_map(), mapgen_lua_kernel::create_scenario(), impl_add_animation(), lua_rng::impl_rng_destroy(), lua_cpp::intf_cleanup(), intf_find_path(), lua_map_location::intf_get_direction(), application_lua_kernel::load_script_from_file(), application_lua_kernel::load_script_from_string(), luaB_type(), luaW_checkvariable(), lua_kernel_base::protected_call(), lua_gui2::show_message_dialog(), and tag_error().
Definition at line 1267 of file lapi.cpp.
References api_check, clCvalue, f, getupvalref(), index2addr(), LUA_TCCL, LUA_TLCL, ttype, and CClosure::upvalue.
Referenced by db_upvalueid().
Definition at line 1286 of file lapi.cpp.
References getupvalref(), luaC_upvalbarrier, luaC_upvdeccount(), UpVal::refcount, and upisopen.
Referenced by db_upvaluejoin().
LUA_API const lua_Number*() lua_version | ( | lua_State * | L | ) |
Definition at line 144 of file lapi.cpp.
References G, and LUA_VERSION_NUM.
Referenced by f_luaopen(), and luaL_checkversion_().
Definition at line 118 of file lapi.cpp.
References api_check, api_checknelems, lua_State::ci, G, i, lua_lock, lua_unlock, n, setobj2s, CallInfo::top, and lua_State::top.
Referenced by auxresume(), db_gethook(), db_getinfo(), db_getlocal(), db_sethook(), db_setlocal(), luaB_cocreate(), and treatstackoption().
LUA_API int() lua_yieldk | ( | lua_State * | L, |
int | nresults, | ||
lua_KContext | ctx, | ||
lua_KFunction | k | ||
) |
Definition at line 692 of file ldo.cpp.
References api_check, api_checknelems, CallInfo::c, CallInfo::callstatus, lua_State::ci, CIST_HOOKED, CallInfo::extra, CallInfo::func, G, isLua, lua_assert, lua_lock, lua_unlock, LUA_YIELD, luaD_throw(), luaG_runerror(), luai_userstateyield, lua_State::nny, savestack, lua_State::status, lua_State::top, and CallInfo::u.