The Battle for Wesnoth
1.13.4+dev
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
utils
make_enum.cpp
Go to the documentation of this file.
1
#include "
utils/make_enum.hpp
"
2
#include "
wml_exception.hpp
"
3
#include "
game_config.hpp
"
4
5
namespace
make_enum_detail
6
{
7
void
debug_conversion_error
(
const
std::string
& temp,
const
bad_enum_cast
&
e
)
8
{
9
if
(!temp.empty() &&
game_config::debug
) {
10
FAIL
( e.
what
() );
11
}
12
}
13
}
14
game_config.hpp
wml_exception.hpp
Add a special kind of assert to validate whether the input from WML doesn't contain any problems that...
bad_enum_cast::what
const char * what() const
Definition:
make_enum.hpp:103
make_enum_detail
Definition:
make_enum.cpp:5
game_config::debug
bool debug
Definition:
game_config.cpp:62
make_enum_detail::debug_conversion_error
void debug_conversion_error(const std::string &temp, const bad_enum_cast &e)
Definition:
make_enum.cpp:7
e
#define e
FAIL
#define FAIL(message)
Definition:
wml_exception.hpp:68
bad_enum_cast
Definition:
make_enum.hpp:92
make_enum.hpp
Defines the MAKE_ENUM macro.
string
GLsizei const GLcharARB ** string
Definition:
glew.h:4503
Generated by
1.8.8