We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c506bf commit 280e810Copy full SHA for 280e810
1 file changed
src/PowerPC_EABI_Support/src/Runtime/New.cp
@@ -1,28 +1,28 @@
1
#include "PowerPC_EABI_Support/Runtime/New.h"
2
3
-extern "C" {
4
-void free(void*);
5
-}
6
-
7
-__declspec(weak) void operator delete(void* arg0) throw()
8
-{
9
- if (arg0 != 0) {
10
- free(arg0);
11
- }
12
13
14
namespace std
15
{
16
class exception
17
18
public:
19
exception() {}
20
virtual ~exception() {}
21
- virtual const char* what() const { return "exception"; }
+ virtual const char* what() const;
22
};
+
+__declspec(weak) const char* exception::what() const
+{
+ return "exception";
+}
23
}
24
25
-static void unused()
+extern "C" {
+void free(void*);
+__declspec(weak) void operator delete(void* arg0) throw()
26
27
- throw std::exception();
+ if (arg0 != 0) {
+ free(arg0);
+ }
28
0 commit comments