The Battle for Wesnoth  1.15.0-dev
Namespaces | Macros | Variables
handlers.cpp File Reference

The structure that tracks WML event handlers. More...

#include "game_events/handlers.hpp"
#include "game_data.hpp"
#include "log.hpp"
#include "scripting/game_lua_kernel.hpp"
#include "sound.hpp"
#include "variable.hpp"
#include <iostream>
Include dependency graph for handlers.cpp:

Go to the source code of this file.


 Domain specific events.


#define DBG_NG   LOG_STREAM(debug, log_engine)
#define LOG_NG   LOG_STREAM(info, log_engine)
#define WRN_NG   LOG_STREAM(warn, log_engine)
#define DBG_EH   LOG_STREAM(debug, log_event_handler)


static lg::log_domain log_engine ("engine")
static lg::log_domain log_event_handler ("event_handler")

Detailed Description

The structure that tracks WML event handlers.

(Typically, handlers are defined by [event] tags.)

Definition in file handlers.cpp.

Macro Definition Documentation


#define DBG_EH   LOG_STREAM(debug, log_event_handler)

Definition at line 37 of file handlers.cpp.


#define DBG_NG   LOG_STREAM(debug, log_engine)

Definition at line 32 of file handlers.cpp.

Referenced by game_events::event_handler::handle_event().


#define LOG_NG   LOG_STREAM(info, log_engine)

Definition at line 33 of file handlers.cpp.


#define WRN_NG   LOG_STREAM(warn, log_engine)

Definition at line 34 of file handlers.cpp.

Variable Documentation

◆ log_engine

lg::log_domain log_engine("engine")

◆ log_event_handler

lg::log_domain log_event_handler("event_handler")