This repository was archived by the owner on Oct 12, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ module core.stdcpp.exception;
13
13
14
14
extern (C++ , " std" ):
15
15
16
- version (CRuntime_DigitalMars )
16
+ version (CppRuntime_DigitalMars )
17
17
{
18
18
import core.stdcpp.typeinfo ;
19
19
@@ -46,7 +46,7 @@ version (CRuntime_DigitalMars)
46
46
override const (char )* what () const nothrow ;
47
47
}
48
48
}
49
- else version (CRuntime_Glibc )
49
+ else version (CppRuntime_Gcc )
50
50
{
51
51
alias void function () unexpected_handler;
52
52
unexpected_handler set_unexpected (unexpected_handler f) nothrow ;
@@ -74,7 +74,7 @@ else version (CRuntime_Glibc)
74
74
override const (char )* what () const ;
75
75
}
76
76
}
77
- else version (CRuntime_Microsoft )
77
+ else version (CppRuntime_Microsoft )
78
78
{
79
79
class exception
80
80
{
@@ -96,3 +96,5 @@ else version (CRuntime_Microsoft)
96
96
// virtual ~this();
97
97
}
98
98
}
99
+ else
100
+ static assert (0 , " Missing std::exception binding for this platform" );
Original file line number Diff line number Diff line change 11
11
12
12
module core.stdcpp.typeinfo ;
13
13
14
- version (CRuntime_DigitalMars )
14
+ version (CppRuntime_DigitalMars )
15
15
{
16
16
import core.stdcpp.exception ;
17
17
@@ -54,7 +54,7 @@ version (CRuntime_DigitalMars)
54
54
override const (char )* what() const nothrow ;
55
55
}
56
56
}
57
- else version (CRuntime_Microsoft )
57
+ else version (CppRuntime_Microsoft )
58
58
{
59
59
import core.stdcpp.exception ;
60
60
@@ -95,7 +95,7 @@ else version (CRuntime_Microsoft)
95
95
// virtual ~this();
96
96
}
97
97
}
98
- else version (CRuntime_Glibc )
98
+ else version (CppRuntime_Gcc )
99
99
{
100
100
import core.stdcpp.exception ;
101
101
@@ -143,3 +143,5 @@ else version (CRuntime_Glibc)
143
143
override const (char )* what () const ;
144
144
}
145
145
}
146
+ else
147
+ static assert (0 , " Missing std::type_info binding for this platform" );
You can’t perform that action at this time.
0 commit comments