Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 7891755

Browse files
ibuclawdlang-bot
authored andcommitted
core.stdcpp.exception: Add separate implemention of exception for CppRuntime_DigitalMars
1 parent 103ca0c commit 7891755

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/core/stdcpp/exception.d

+18-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ module core.stdcpp.exception;
1515
import core.stdcpp.xutility : __cplusplus, CppStdRevision;
1616
import core.attribute : weak;
1717

18-
version (CppRuntime_DigitalMars)
19-
version = GenericBaseException;
2018
version (CppRuntime_Gcc)
2119
version = GenericBaseException;
2220
version (CppRuntime_Clang)
@@ -80,6 +78,24 @@ version (GenericBaseException)
8078
this(const(char)*, int = 1) nothrow { this(); } // compat with MS derived classes
8179
}
8280
}
81+
else version (CppRuntime_DigitalMars)
82+
{
83+
///
84+
class exception
85+
{
86+
@nogc:
87+
///
88+
this() nothrow {}
89+
//virtual ~this();
90+
void dtor() { } // reserve slot in vtbl[]
91+
92+
///
93+
const(char)* what() const nothrow;
94+
95+
protected:
96+
this(const(char)*, int = 1) nothrow { this(); } // compat with MS derived classes
97+
}
98+
}
8399
else version (CppRuntime_Microsoft)
84100
{
85101
///

0 commit comments

Comments
 (0)