mirror of
https://github.com/vcmi/vcmi.git
synced 2026-06-19 22:57:37 +02:00
add DLL_LINKAGE + out-of-line dtor
This commit is contained in:
@@ -310,6 +310,7 @@ set(lib_MAIN_SRCS
|
||||
CAndroidVMHelper.cpp
|
||||
CBonusTypeHandler.cpp
|
||||
CCreatureHandler.cpp
|
||||
ConditionalWait.cpp
|
||||
CPlayerState.cpp
|
||||
CRandomGenerator.cpp
|
||||
CScriptingModule.cpp
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
/*
|
||||
* ConditionalWait.cpp, part of VCMI engine
|
||||
*
|
||||
* Authors: listed in file AUTHORS in main folder
|
||||
*
|
||||
* License: GNU General Public License v2.0 or later
|
||||
* Full text of license available in license.txt file, in main folder
|
||||
*
|
||||
*/
|
||||
#include "StdInc.h"
|
||||
#include "ConditionalWait.h"
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
TerminationRequestedException::~TerminationRequestedException() = default;
|
||||
InterruptionRequestedException::~InterruptionRequestedException() = default;
|
||||
|
||||
VCMI_LIB_NAMESPACE_END
|
||||
@@ -13,10 +13,11 @@
|
||||
|
||||
VCMI_LIB_NAMESPACE_BEGIN
|
||||
|
||||
class TerminationRequestedException : public std::exception
|
||||
class DLL_LINKAGE TerminationRequestedException : public std::exception
|
||||
{
|
||||
public:
|
||||
using exception::exception;
|
||||
~TerminationRequestedException() override;
|
||||
|
||||
const char* what() const noexcept override
|
||||
{
|
||||
@@ -24,10 +25,11 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
class InterruptionRequestedException : public std::exception
|
||||
class DLL_LINKAGE InterruptionRequestedException : public std::exception
|
||||
{
|
||||
public:
|
||||
using exception::exception;
|
||||
~InterruptionRequestedException() override;
|
||||
|
||||
const char* what() const noexcept override
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user