add DLL_LINKAGE + out-of-line dtor

This commit is contained in:
Yury Zhurikhin
2026-03-21 20:00:57 +03:00
parent 6c78d4bb23
commit ebebca7257
3 changed files with 23 additions and 2 deletions
+1
View File
@@ -310,6 +310,7 @@ set(lib_MAIN_SRCS
CAndroidVMHelper.cpp
CBonusTypeHandler.cpp
CCreatureHandler.cpp
ConditionalWait.cpp
CPlayerState.cpp
CRandomGenerator.cpp
CScriptingModule.cpp
+18
View File
@@ -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
+4 -2
View File
@@ -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
{