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\
11 static const char* const TEMPLATE;\
12 name(const char* const errorMessage);\
14 const char* const errorMessage,\
15 const libsex::Exception& previous);\