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

core.stdcpp.exception: Add separate implemention of exception for CppRuntime_DigitalMars #3558

Merged
merged 1 commit into from
Aug 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions src/core/stdcpp/exception.d
Original file line number Diff line number Diff line change
@@ -15,8 +15,6 @@ module core.stdcpp.exception;
import core.stdcpp.xutility : __cplusplus, CppStdRevision;
import core.attribute : weak;

version (CppRuntime_DigitalMars)
version = GenericBaseException;
version (CppRuntime_Gcc)
version = GenericBaseException;
version (CppRuntime_Clang)
@@ -80,6 +78,24 @@ version (GenericBaseException)
this(const(char)*, int = 1) nothrow { this(); } // compat with MS derived classes
}
}
else version (CppRuntime_DigitalMars)
{
///
class exception
{
@nogc:
///
this() nothrow {}
//virtual ~this();
void dtor() { } // reserve slot in vtbl[]

///
const(char)* what() const nothrow;

protected:
this(const(char)*, int = 1) nothrow { this(); } // compat with MS derived classes
}
}
else version (CppRuntime_Microsoft)
{
///