diff --git a/include/exception.hpp b/include/exception.hpp index 71b93b89..b0880f52 100644 --- a/include/exception.hpp +++ b/include/exception.hpp @@ -13,8 +13,8 @@ struct Exception : public std::runtime_error #define DefineChildException(ExName, ParentEx) struct ExName : public ParentEx { \ ExName(std::string error_message = "") \ : ParentEx("["+ std::string(__FUNCTION__) +"] => "+ error_message) {} \ -}; -#define DefineBaseException(ExName) DefineChildException(ExName, Exception); +} +#define DefineBaseException(ExName) DefineChildException(ExName, Exception) #endif