#include "global.hpp"
#include "wml_exception.hpp"
#include "display.hpp"
#include "gettext.hpp"
#include "show_dialog.hpp"
#include <cassert>
#include <sstream>
Go to the source code of this file.
Functions | |
void | wml_exception (const char *cond, const char *file, const int line, const char *function, const t_string &message) |
Helper function, don't call this directly. | |
t_string | missing_mandatory_wml_key (const std::string §ion, const std::string &key, const std::string &primary_key, const std::string &primary_value) |
Returns a standard message for a missing wml key. |
Definition in file wml_exception.cpp.
t_string missing_mandatory_wml_key | ( | const std::string & | section, | |
const std::string & | key, | |||
const std::string & | primary_key = "" , |
|||
const std::string & | primary_value = "" | |||
) |
Returns a standard message for a missing wml key.
section | The section is which the key should appear. | |
key | The ommitted key. | |
primary_key | The primary key of the section. | |
primary_value | The value of the primary key (mandatory if primary key isn't empty). |
Definition at line 60 of file wml_exception.cpp.
References vgettext().
Referenced by gui2::twindow_builder::read(), gui2::tgui_definition::read(), gui2::tcontrol_definition::tcontrol_definition(), terrain_type::terrain_type(), gui2::twindow_builder::tresolution::tresolution(), and gui2::tvertical_scrollbar_definition::tresolution::tresolution().
void wml_exception | ( | const char * | cond, | |
const char * | file, | |||
const int | line, | |||
const char * | function, | |||
const t_string & | message | |||
) |
Helper function, don't call this directly.
cond | The textual presentation of the test that failed. | |
file | The file in which the test failed. | |
line | The line at which the test failed. | |
function | The funtion in which the test failed. | |
message | The translatable message to show the user. |
Definition at line 30 of file wml_exception.cpp.
References t_string::str().
Referenced by wml_exception().
Generated by doxygen 1.5.5 on 23 May 2008 for The Battle for Wesnoth | Gna! | Forum | Wiki | CIA | devdocs |