diff options
author | Sadie Powell <sadie@witchery.services> | 2024-01-22 19:25:21 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-01-22 20:06:57 +0000 |
commit | 1467de1c7ee03d393a62f57e54e564bd0462d758 (patch) | |
tree | fba25ea2a8023828687b8e1280cb084e41cb55b3 /include/anope.h | |
parent | c5023fdfa06a3b7c49d5320bd0a08f503989977f (diff) |
Mark all exception types as CoreExport.
From the GCC docs:
>Exception catching of a user defined type in a binary other than
>the one which threw the exception requires a typeinfo lookup.
Closes #335.
Diffstat (limited to 'include/anope.h')
-rw-r--r-- | include/anope.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/anope.h b/include/anope.h index 4d7a197e2..fc8d01fba 100644 --- a/include/anope.h +++ b/include/anope.h @@ -652,7 +652,7 @@ public: * be loaded. If this happens, the error message returned by ModuleException::GetReason will be displayed to the user * attempting to load the module, or dumped to the console if the ircd is currently loading for the first time. */ -class CoreException : public std::exception +class CoreExport CoreException : public std::exception { protected: /** Holds the error message to be displayed @@ -691,7 +691,7 @@ public: } }; -class ModuleException : public CoreException +class CoreExport ModuleException : public CoreException { public: /** Default constructor, just uses the error message 'Module threw an exception'. @@ -708,7 +708,7 @@ public: virtual ~ModuleException() noexcept = default; }; -class ConvertException : public CoreException +class CoreExport ConvertException : public CoreException { public: ConvertException(const Anope::string &reason = "") : CoreException(reason) { } |