Changed "double fault" message.
[libsex.git] / source / declare.hxx
blobe93c419aedecbc061f4520cb21fa597efcf48424
1 #ifndef LIBSEX_DECLARE_HXX
2 #define LIBSEX_DECLARE_HXX
4 #include <source/Exception.hxx>
6 /// Macro for declaring exception classes (.hxx).
7 #define LIBSEX_DECLARE(parent, name) \
8 class name : public parent\
9 {\
10 public:\
11 static const char* const TEMPLATE;\
12 name(const char* const errorMessage);\
13 name(\
14 const char* const errorMessage,\
15 const libsex::Exception& previous);\
18 #endif