File tree Expand file tree Collapse file tree 2 files changed +24
-2
lines changed Expand file tree Collapse file tree 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 66
77#include " new.h"
88
9- extern " C" void __cxa_pure_virtual () {}
10-
119// The C++ spec dictates that allocation failure should cause the
1210// (non-nothrow version of the) operator new to throw an exception.
1311// Since we expect to have exceptions disabled, it would be more
You can’t perform that action at this time.
0 commit comments