The Battle for Wesnoth  1.15.1+dev
Classes | Namespaces | Macros | Variables
image_modifications.cpp File Reference
#include "image_modifications.hpp"
#include "color.hpp"
#include "config.hpp"
#include "game_config.hpp"
#include "picture.hpp"
#include "lexical_cast.hpp"
#include "log.hpp"
#include "serialization/string_utils.hpp"
#include "formula/formula.hpp"
#include "formula/callable.hpp"
Include dependency graph for image_modifications.cpp:

Go to the source code of this file.

Classes

class  image::pixel_callable
 

Namespaces

 image
 this module manages the cache of images.
 

Macros

#define GETTEXT_DOMAIN   "wesnoth-lib"
 
#define ERR_DP   LOG_STREAM(err, log_display)
 
#define REGISTER_MOD_PARSER(type, args_var)
 A macro for automatic modification parser registration. More...
 

Variables

static lg::log_domain log_display ("display")
 

Macro Definition Documentation

◆ ERR_DP

#define ERR_DP   LOG_STREAM(err, log_display)

◆ GETTEXT_DOMAIN

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 28 of file image_modifications.cpp.

◆ REGISTER_MOD_PARSER

#define REGISTER_MOD_PARSER (   type,
  args_var 
)
Value:
static modification* parse_##type##_mod(const std::string&); \
static parse_mod_registration parse_##type##_mod_registration_aux(#type, &parse_##type##_mod); \
static modification* parse_##type##_mod(const std::string& args_var) \

A macro for automatic modification parser registration.

It automatically registers the created parser in the mod_parsers map It should be used just like a function header (look at the uses below) It should only be used within an anonymous namespace

Parameters
typeThe modification type to be registered (unquoted)
args_varThe name for the string argument provided

Definition at line 624 of file image_modifications.cpp.

Variable Documentation

◆ log_display

lg::log_domain log_display("display")
static