The Battle for Wesnoth  1.15.1+dev
Classes | Macros
synced_commands.hpp File Reference
#include <map>
#include <exception>
#include <string>
#include "utils/functional.hpp"
Include dependency graph for synced_commands.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  synced_command
 

Macros

#define SYNCED_COMMAND_HANDLER_FUNCTION(pname, pcfg, use_undo, show, error_handler)
 

Macro Definition Documentation

◆ SYNCED_COMMAND_HANDLER_FUNCTION

#define SYNCED_COMMAND_HANDLER_FUNCTION (   pname,
  pcfg,
  use_undo,
  show,
  error_handler 
)
Value:
static bool synced_command_func_##pname(const config & pcfg, bool use_undo, bool show, synced_command::error_handler_function error_handler ); \
static synced_command synced_command_action_##pname(#pname, &synced_command_func_##pname); \
static bool synced_command_func_##pname(const config & pcfg, bool use_undo, bool show, synced_command::error_handler_function error_handler)
std::function< void(const std::string &, bool)> error_handler_function
A config object defines a single node in a WML file, with access to child nodes.
Definition: config.hpp:92
void show(const std::string &window_id, const t_string &message, const point &mouse, const SDL_Rect &source_rect)
Shows a tip.
Definition: tooltip.cpp:154

Definition at line 54 of file synced_commands.hpp.