File tree 2 files changed +24
-2
lines changed
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright (c) 2024 Arduino SA
3
+ *
4
+ * SPDX-License-Identifier: Apache-2.0
5
+ */
6
+
7
+ #include < stdlib.h>
8
+
9
+ extern " C" void __cxa_pure_virtual (void ) __attribute__ ((__noreturn__));
10
+ extern " C" void __cxa_deleted_virtual (void ) __attribute__ ((__noreturn__));
11
+
12
+ namespace std {
13
+ [[gnu::weak, noreturn]] void terminate () {
14
+ abort ();
15
+ }
16
+ }
17
+
18
+ void __cxa_pure_virtual (void ) {
19
+ std::terminate ();
20
+ }
21
+
22
+ void __cxa_deleted_virtual (void ) {
23
+ std::terminate ();
24
+ }
Original file line number Diff line number Diff line change 6
6
7
7
#include " new.h"
8
8
9
- extern " C" void __cxa_pure_virtual () {}
10
-
11
9
// The C++ spec dictates that allocation failure should cause the
12
10
// (non-nothrow version of the) operator new to throw an exception.
13
11
// Since we expect to have exceptions disabled, it would be more
You can’t perform that action at this time.
0 commit comments