The Battle for Wesnoth  1.19.0-dev
Functions | Variables
deprecation.cpp File Reference
#include "deprecation.hpp"
#include "formula/string_utils.hpp"
#include "log.hpp"
#include "preferences/general.hpp"
#include "game_version.hpp"
Include dependency graph for deprecation.cpp:

Go to the source code of this file.

Functions

std::string deprecated_message (const std::string &elem_name, DEP_LEVEL level, const version_info &version, const std::string &detail)
 

Variables

static lg::log_domain log_deprecate ("deprecation", lg::severity::LG_ERROR)
 

Function Documentation

◆ deprecated_message()

std::string deprecated_message ( const std::string &  elem_name,
DEP_LEVEL  level,
const version_info version,
const std::string &  detail 
)

Definition at line 29 of file deprecation.cpp.

References lg::logger::dont_log(), lg::err(), FOR_REMOVAL, FORCE_LOG_TO, lg::general(), preferences::get(), INDEFINITE, lg::info(), game_config::images::level, log_deprecate, LOG_STREAM, lg::log_to_chat(), wfl::msg(), PREEMPTIVE, REMOVED, version_info::str(), VGETTEXT, lg::warn(), and game_config::wesnoth_version.

Referenced by attack_type::apply_modification(), unit::apply_modifications(), saved_game::expand_map_file(), ai::configuration::expand_simplified_aspects(), unit_creator::find_location(), gui2::dialogs::generate_difficulty_config(), preprocessor_data::get_chunk(), config::get_deprecated_attribute(), config::get_deprecated_child(), config::get_deprecated_child_range(), config::get_old_attribute(), wfl::terrain_callable::get_value(), wfl::unit_callable::get_value(), wfl::team_callable::get_value(), unit::init(), intf_add_modification(), game_lua_kernel::intf_add_time_area(), intf_default_generate_height_map(), intf_deprecated_message(), game_lua_kernel::intf_find_path(), game_lua_kernel::intf_find_reach(), intf_name_generator(), ai::lua_candidate_action_wrapper_external::lua_candidate_action_wrapper_external(), matches_simple_filter(), storyscreen::story_parser::resolve_wml(), filesystem::set_user_data_dir(), show_deprecated_warnings(), attack_type::special_active_impl(), terrain_type::terrain_type(), game_events::wml_menu_item::update(), game_events::WML_HANDLER_FUNCTION(), and game_events::wml_menu_item::wml_menu_item().

Variable Documentation

◆ log_deprecate

lg::log_domain log_deprecate("deprecation", lg::severity::LG_ERROR) ( "deprecation"  ,
lg::severity::LG_ERROR   
)
static

Referenced by deprecated_message().