mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-10-04 09:08:42 +00:00
NOISSUE make shared logic library ... shared
This commit is contained in:
@@ -6,7 +6,9 @@
|
||||
#include <QLoggingCategory>
|
||||
#include <exception>
|
||||
|
||||
class Exception : public std::exception
|
||||
#include "multimc_logic_export.h"
|
||||
|
||||
class MULTIMC_LOGIC_EXPORT Exception : public std::exception
|
||||
{
|
||||
public:
|
||||
Exception(const QString &message) : std::exception(), m_message(message)
|
||||
@@ -30,12 +32,3 @@ public:
|
||||
private:
|
||||
QString m_message;
|
||||
};
|
||||
|
||||
#define DECLARE_EXCEPTION(name) \
|
||||
class name##Exception : public ::Exception \
|
||||
{ \
|
||||
public: \
|
||||
name##Exception(const QString &message) : Exception(message) \
|
||||
{ \
|
||||
} \
|
||||
}
|
||||
|
Reference in New Issue
Block a user