Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
l_internal.h File Reference
+ Include dependency graph for l_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define luamethod(class, name)   {#name, class::l_##name}
 
#define luamethod_dep(class, good, bad)
 
#define luamethod_aliased(class, good, bad)
 
#define API_FCT(name)   registerFunction(L, #name, l_##name, top)
 
#define MAP_LOCK_REQUIRED   ((void)0)
 
#define NO_MAP_LOCK_REQUIRED   ((void)0)
 
#define DEBUG_ASSERT_NO_CLIENTAPI   ((void)0)
 
#define GET_ENV_PTR_NO_MAP_LOCK
 
#define GET_ENV_PTR
 
#define GET_PLAIN_ENV_PTR_NO_MAP_LOCK
 
#define GET_PLAIN_ENV_PTR
 

Macro Definition Documentation

◆ API_FCT

◆ DEBUG_ASSERT_NO_CLIENTAPI

#define DEBUG_ASSERT_NO_CLIENTAPI   ((void)0)

◆ GET_ENV_PTR

#define GET_ENV_PTR
Value:
#define GET_ENV_PTR_NO_MAP_LOCK
Definition l_internal.h:44
#define MAP_LOCK_REQUIRED
Definition l_internal.h:30

Referenced by LuaVoxelManip::create_object(), ModApiEnv::l_add_entity(), ModApiEnv::l_add_item(), ModApiEnv::l_add_node_level(), ModApiEnv::l_bulk_set_node(), ModApiEnv::l_bulk_swap_node(), ModApiEnv::l_clear_objects(), ModApiEnv::l_compare_block_status(), ModApiEnv::l_delete_area(), ModApiEnv::l_dig_node(), ModApiEnv::l_emerge_area(), ModApiEnv::l_find_path(), ModApiEnv::l_fix_light(), ModApiEnv::l_forceload_block(), ModApiEnv::l_forceload_free_block(), ObjectRef::l_get_attach(), ObjectRef::l_get_children(), ModApiEnv::l_get_gametime(), ModApiEnv::l_get_meta(), ModApiEnv::l_get_natural_light(), ModApiEnv::l_get_node_boxes(), ModApiEnv::l_get_node_raw(), ModApiEnv::l_get_node_timer(), ModApiEnv::l_get_objects_in_area(), ModApiEnv::l_get_objects_inside_radius(), ModApiEnv::l_get_player_by_name(), ModApiServer::l_get_server_max_lag(), ModApiEnv::l_get_translated_string(), ModApiEnv::l_load_area(), ModApiEnv::l_place_node(), ModApiMapgen::l_place_schematic(), ModApiEnv::l_punch_node(), ObjectRef::l_remove(), ModApiEnv::l_remove_node(), ObjectRef::l_set_attach(), ObjectRef::l_set_detach(), ModApiEnv::l_set_node(), ModApiEnv::l_set_node_level(), ObjectRef::l_set_observers(), ModApiEnv::l_set_timeofday(), ModApiEnv::l_spawn_tree(), ModApiEnv::l_swap_node(), ModApiEnv::l_transforming_liquid_add(), LuaVoxelManip::l_write_to_map(), and ModApiMapgen::update_liquids().

◆ GET_ENV_PTR_NO_MAP_LOCK

#define GET_ENV_PTR_NO_MAP_LOCK
Value:
ServerEnvironment *env = (ServerEnvironment *)getEnv(L); \
if (env == NULL) \
return 0
Definition serverenvironment.h:219
#define DEBUG_ASSERT_NO_CLIENTAPI
Definition l_internal.h:40

Referenced by ModApiEnv::l_get_perlin(), and ModApiEnv::l_get_perlin_map().

◆ GET_PLAIN_ENV_PTR

◆ GET_PLAIN_ENV_PTR_NO_MAP_LOCK

#define GET_PLAIN_ENV_PTR_NO_MAP_LOCK
Value:
Environment *env = getEnv(L); \
if (env == NULL) \
return 0
Definition environment.h:34

◆ luamethod

#define luamethod ( class,
name )   {#name, class::l_##name}

◆ luamethod_aliased

#define luamethod_aliased ( class,
good,
bad )
Value:
luamethod(class, good), \
luamethod_dep(class, good, bad)
#define luamethod(class, name)
Definition l_internal.h:16

◆ luamethod_dep

#define luamethod_dep ( class,
good,
bad )
Value:
{#bad, [](lua_State *L) -> int { \
return l_deprecated_function(L, #good, #bad, &class::l_##good); \
}}

◆ MAP_LOCK_REQUIRED

◆ NO_MAP_LOCK_REQUIRED

#define NO_MAP_LOCK_REQUIRED   ((void)0)

Referenced by InvRef::create(), LuaItemStack::create(), LuaAreaStore::create_object(), LuaItemStack::create_object(), LuaPcgRandom::create_object(), LuaPerlinNoise::create_object(), LuaPseudoRandom::create_object(), LuaRaycast::create_object(), LuaSettings::create_object(), InvRef::getlist(), InvRef::l_add_item(), LuaItemStack::l_add_item(), ModApiParticles::l_add_particle(), ModApiParticles::l_add_particlespawner(), ObjectRef::l_add_pos(), ObjectRef::l_add_velocity(), LuaItemStack::l_add_wear(), LuaItemStack::l_add_wear_by_uses(), ModApiAuth::l_auth_create(), ModApiAuth::l_auth_delete(), ModApiAuth::l_auth_list_names(), ModApiAuth::l_auth_read(), ModApiAuth::l_auth_reload(), ModApiAuth::l_auth_save(), ModApiServer::l_ban_player(), LuaPerlinNoiseMap::l_calc_2d_map(), LuaPerlinNoiseMap::l_calc_3d_map(), ModApiServer::l_chat_send_all(), ModApiServer::l_chat_send_player(), ModApiUtil::l_check_password_entry(), LuaItemStack::l_clear(), ModApiCraft::l_clear_craft(), ModApiMapgen::l_clear_registered_biomes(), ModApiMapgen::l_clear_registered_decorations(), ModApiMapgen::l_clear_registered_ores(), ModApiMapgen::l_clear_registered_schematics(), ModApiUtil::l_colorspec_to_bytes(), ModApiUtil::l_colorspec_to_colorstring(), ModApiUtil::l_colorspec_to_table(), ModApiUtil::l_compress(), InvRef::l_contains_item(), ModApiUtil::l_cpdir(), ModApiInventory::l_create_detached_inventory_raw(), ModApiUtil::l_decode_base64(), ModApiUtil::l_decompress(), ModApiParticles::l_delete_particlespawner(), ModApiServer::l_disconnect_player(), ModApiServer::l_do_async_callback(), ModApiServer::l_dynamic_add_media(), ModApiUtil::l_encode_base64(), ModApiUtil::l_encode_png(), LuaItemStack::l_equals(), LuaAreaStore::l_from_file(), LuaAreaStore::l_from_string(), ModApiMapgen::l_generate_decorations(), ModApiMapgen::l_generate_ores(), LuaSettings::l_get(), LuaPerlinNoise::l_get_2d(), LuaPerlinNoiseMap::l_get_2d_map(), LuaPerlinNoiseMap::l_get_2d_map_flat(), LuaPerlinNoise::l_get_3d(), LuaPerlinNoiseMap::l_get_3d_map(), LuaPerlinNoiseMap::l_get_3d_map_flat(), ObjectRef::l_get_acceleration(), ModApiCraft::l_get_all_craft_recipes(), ObjectRef::l_get_animation(), LuaAreaStore::l_get_area(), LuaAreaStore::l_get_areas_for_pos(), LuaAreaStore::l_get_areas_in_area(), ObjectRef::l_get_armor_groups(), ModApiServer::l_get_ban_description(), ModApiServer::l_get_ban_list(), ModApiMapgen::l_get_biome_data(), ModApiMapgen::l_get_biome_id(), ModApiMapgen::l_get_biome_name(), ObjectRef::l_get_bone_override(), ObjectRef::l_get_bone_overrides(), ObjectRef::l_get_bone_position(), LuaSettings::l_get_bool(), ObjectRef::l_get_breath(), ModApiUtil::l_get_builtin_path(), ObjectRef::l_get_clouds(), ModApiItem::l_get_content_id(), LuaItemStack::l_get_count(), ModApiCraft::l_get_craft_recipe(), ModApiCraft::l_get_craft_result(), ModApiServer::l_get_current_modname(), LuaVoxelManip::l_get_data(), ObjectRef::l_get_day_night_ratio(), ModApiMapgen::l_get_decoration_id(), LuaItemStack::l_get_definition(), LuaItemStack::l_get_description(), ModApiUtil::l_get_dig_params(), ModApiUtil::l_get_dir_list(), ObjectRef::l_get_effective_observers(), LuaVoxelManip::l_get_emerged_area(), ObjectRef::l_get_entity_name(), ObjectRef::l_get_eye_offset(), LuaSettings::l_get_flags(), ObjectRef::l_get_flags(), ObjectRef::l_get_formspec_prepend(), ObjectRef::l_get_fov(), LuaItemStack::l_get_free_space(), ModApiServer::l_get_game_info(), ModApiMapgen::l_get_gen_notify(), ModApiMapgen::l_get_heat(), ModApiUtil::l_get_hit_params(), ObjectRef::l_get_hp(), ModApiHttp::l_get_http_api(), ModApiMapgen::l_get_humidity(), ModApiInventory::l_get_inventory(), ObjectRef::l_get_inventory(), ObjectRef::l_get_inventory_formspec(), ModApiUtil::l_get_last_run_mod(), LuaVoxelManip::l_get_light_data(), ObjectRef::l_get_lighting(), InvRef::l_get_list(), InvRef::l_get_lists(), ObjectRef::l_get_local_animation(), InvRef::l_get_location(), ObjectRef::l_get_look_dir(), ObjectRef::l_get_look_horizontal(), ObjectRef::l_get_look_pitch(), ObjectRef::l_get_look_vertical(), ObjectRef::l_get_look_yaw(), ObjectRef::l_get_luaentity(), LuaPerlinNoiseMap::l_get_map_slice(), ModApiMapgen::l_get_mapgen_edges(), ModApiMapgen::l_get_mapgen_object(), ModApiMapgen::l_get_mapgen_params(), ModApiMapgen::l_get_mapgen_setting(), ModApiMapgen::l_get_mapgen_setting_noiseparams(), LuaItemStack::l_get_meta(), LuaItemStack::l_get_metadata(), ModApiServer::l_get_mod_data_path(), ModApiServer::l_get_modnames(), ModApiServer::l_get_modpath(), ObjectRef::l_get_moon(), LuaItemStack::l_get_name(), ModApiItem::l_get_name_from_content_id(), LuaSettings::l_get_names(), ObjectRef::l_get_nametag_attributes(), LuaVoxelManip::l_get_node_at(), ModApiMapgen::l_get_noiseparams(), LuaSettings::l_get_np_group(), ObjectRef::l_get_observers(), LuaVoxelManip::l_get_param2_data(), ModApiUtil::l_get_password_hash(), ObjectRef::l_get_physics_override(), ObjectRef::l_get_player_control(), ObjectRef::l_get_player_control_bits(), ModApiServer::l_get_player_information(), ModApiServer::l_get_player_ip(), ObjectRef::l_get_player_name(), ModApiServer::l_get_player_privs(), ModApiServer::l_get_player_window_information(), ObjectRef::l_get_pos(), ObjectRef::l_get_properties(), ObjectRef::l_get_rotation(), ModApiMapgen::l_get_seed(), ModApiServer::l_get_server_max_lag(), ModApiServer::l_get_server_status(), ModApiServer::l_get_server_uptime(), LuaItemStack::l_get_short_description(), InvRef::l_get_size(), ObjectRef::l_get_sky(), ObjectRef::l_get_sky_color(), ModApiMapgen::l_get_spawn_level(), InvRef::l_get_stack(), LuaItemStack::l_get_stack_max(), ObjectRef::l_get_stars(), LuaPcgRandom::l_get_state(), LuaPseudoRandom::l_get_state(), ObjectRef::l_get_sun(), ObjectRef::l_get_texture_mod(), LuaItemStack::l_get_tool_capabilities(), ModApiUtil::l_get_tool_wear_after_use(), ModApiUtil::l_get_us_time(), ModApiUtil::l_get_user_path(), ObjectRef::l_get_velocity(), LuaItemStack::l_get_wear(), LuaItemStack::l_get_wear_bar_params(), InvRef::l_get_width(), ObjectRef::l_get_wield_index(), ObjectRef::l_get_wield_list(), ObjectRef::l_get_wielded_item(), ModApiServer::l_get_worldpath(), ObjectRef::l_get_yaw(), LuaSettings::l_has(), ModApiHttp::l_http_fetch_async(), ModApiHttp::l_http_fetch_async_get(), ModApiHttp::l_http_fetch_sync(), ObjectRef::l_hud_add(), ObjectRef::l_hud_change(), ObjectRef::l_hud_get(), ObjectRef::l_hud_get_all(), ObjectRef::l_hud_get_flags(), ObjectRef::l_hud_get_hotbar_image(), ObjectRef::l_hud_get_hotbar_itemcount(), ObjectRef::l_hud_get_hotbar_selected_image(), ObjectRef::l_hud_remove(), ObjectRef::l_hud_set_flags(), ObjectRef::l_hud_set_hotbar_image(), ObjectRef::l_hud_set_hotbar_itemcount(), ObjectRef::l_hud_set_hotbar_selected_image(), LuaAreaStore::l_insert_area(), InvRef::l_is_empty(), LuaItemStack::l_is_empty(), LuaItemStack::l_is_known(), ObjectRef::l_is_player(), ModApiServer::l_is_singleplayer(), ModApiUtil::l_is_valid_player_name(), ModApiUtil::l_is_yes(), LuaItemStack::l_item_fits(), ModApiUtil::l_log(), ModApiUtil::l_mkdir(), ObjectRef::l_move_to(), ModApiUtil::l_mvdir(), LuaPcgRandom::l_next(), LuaPseudoRandom::l_next(), LuaSecureRandom::l_next_bytes(), ModApiServer::l_notify_authentication_modified(), ObjectRef::l_override_day_night_ratio(), ModApiUtil::l_parse_json(), LuaItemStack::l_peek_item(), ModApiMapgen::l_place_schematic_on_vmanip(), ModApiClient::l_print(), ModApiServer::l_print(), ObjectRef::l_punch(), LuaPcgRandom::l_rand_normal_dist(), ModApiMapgen::l_read_schematic(), ModApiItem::l_register_alias_raw(), ModApiServer::l_register_async_dofile(), ModApiMapgen::l_register_biome(), ModApiCraft::l_register_craft(), ModApiMapgen::l_register_decoration(), ModApiItem::l_register_item_raw(), ModApiServer::l_register_mapgen_script(), ModApiMapgen::l_register_ore(), ModApiMapgen::l_register_schematic(), LuaSettings::l_remove(), LuaAreaStore::l_remove_area(), ModApiInventory::l_remove_detached_inventory_raw(), InvRef::l_remove_item(), ModApiServer::l_remove_player(), LuaItemStack::l_replace(), ModApiHttp::l_request_http_api(), ModApiUtil::l_request_insecure_environment(), ModApiServer::l_request_shutdown(), LuaAreaStore::l_reserve(), ObjectRef::l_respawn(), ObjectRef::l_right_click(), ModApiUtil::l_rmdir(), ModApiRollback::l_rollback_get_node_actions(), InvRef::l_room_for_item(), ModApiUtil::l_safe_file_write(), ObjectRef::l_send_mapblock(), ModApiServer::l_serialize_roundtrip(), ModApiMapgen::l_serialize_schematic(), LuaSettings::l_set(), ObjectRef::l_set_acceleration(), ObjectRef::l_set_animation(), ObjectRef::l_set_animation_frame_speed(), ObjectRef::l_set_armor_groups(), ObjectRef::l_set_bone_override(), ObjectRef::l_set_bone_position(), LuaSettings::l_set_bool(), ObjectRef::l_set_breath(), LuaAreaStore::l_set_cache_params(), ObjectRef::l_set_clouds(), LuaItemStack::l_set_count(), LuaVoxelManip::l_set_data(), ObjectRef::l_set_eye_offset(), ObjectRef::l_set_flags(), ObjectRef::l_set_formspec_prepend(), ObjectRef::l_set_fov(), ModApiMapgen::l_set_gen_notify(), ObjectRef::l_set_hp(), ModApiHttp::l_set_http_api_lua(), ObjectRef::l_set_inventory_formspec(), ModApiUtil::l_set_last_run_mod(), LuaVoxelManip::l_set_light_data(), ObjectRef::l_set_lighting(), InvRef::l_set_list(), InvRef::l_set_lists(), ObjectRef::l_set_local_animation(), ObjectRef::l_set_look_horizontal(), ObjectRef::l_set_look_pitch(), ObjectRef::l_set_look_vertical(), ObjectRef::l_set_look_yaw(), ModApiMapgen::l_set_mapgen_params(), ModApiMapgen::l_set_mapgen_setting(), ModApiMapgen::l_set_mapgen_setting_noiseparams(), LuaItemStack::l_set_metadata(), ObjectRef::l_set_minimap_modes(), ObjectRef::l_set_moon(), LuaItemStack::l_set_name(), ObjectRef::l_set_nametag_attributes(), LuaVoxelManip::l_set_node_at(), ModApiMapgen::l_set_noiseparams(), LuaSettings::l_set_np_group(), LuaVoxelManip::l_set_param2_data(), ObjectRef::l_set_physics_override(), ObjectRef::l_set_pos(), ObjectRef::l_set_properties(), ObjectRef::l_set_rotation(), InvRef::l_set_size(), ObjectRef::l_set_sky(), ObjectRef::l_set_sprite(), InvRef::l_set_stack(), ObjectRef::l_set_stars(), LuaPcgRandom::l_set_state(), ObjectRef::l_set_sun(), ObjectRef::l_set_texture_mod(), ObjectRef::l_set_velocity(), LuaItemStack::l_set_wear(), InvRef::l_set_width(), ObjectRef::l_set_wielded_item(), ObjectRef::l_set_yaw(), ModApiUtil::l_sha1(), ModApiUtil::l_sha256(), ModApiServer::l_show_formspec(), ModApiServer::l_sound_fade(), ModApiServer::l_sound_play(), ModApiServer::l_sound_stop(), LuaItemStack::l_take_item(), ModApiUtil::l_time_to_day_night_ratio(), LuaAreaStore::l_to_file(), LuaAreaStore::l_to_string(), LuaItemStack::l_to_string(), LuaItemStack::l_to_table(), LuaSettings::l_to_table(), ModApiServer::l_unban_player_or_ip(), ModApiItem::l_unregister_item_raw(), ModApiUtil::l_urlencode(), LuaVoxelManip::l_was_modified(), LuaSettings::l_write(), and ModApiUtil::l_write_json().