The Battle for Wesnoth  1.17.12+dev
Classes | Macros
lua_jailbreak_exception.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  lua_jailbreak_exception
 Base class for exceptions that want to be thrown 'through' lua. More...


 Helper macro for classes deriving from lua_jailbreak_exception. More...

Macro Definition Documentation


virtual type* clone() const { return new type(*this); } \
virtual void execute() \
{ \
type exception(dynamic_cast<type&>(*jailbreak_exception)); \
throw exception; \

Helper macro for classes deriving from lua_jailbreak_exception.

lua_jailbreak_exception has several pure virtual functions, this macro implements them properly. This macro needs to be placed in the definition of the most derived class, which uses lua_jailbreak_exception as baseclass.

typeThe type of the class whc

Definition at line 86 of file lua_jailbreak_exception.hpp.

Referenced by ingame_wesnothd_error::ingame_wesnothd_error(), gui2::iteration::logic_error::logic_error(), video::quit::quit(), gui2::iteration::range_error::range_error(), return_to_play_side_exception::what(), and quit_game_exception::what().