Skip to content

Commit 7584172

Browse files
facchinmsoburi
authored andcommitted
loader: impl: add some libc/::std functions
1 parent f37c8b9 commit 7584172

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cores/arduino/abi.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,15 @@ extern "C" int __cxa_atexit(void (*func) (void *), void * arg, void * dso_handle
1212
(void)func; (void)arg; (void)dso_handle; // unused
1313
return 0;
1414
}
15+
extern "C" int atexit(void (*func)(void)) {
16+
(void)func;
17+
return 0;
18+
}
1519

1620
namespace std {
1721
void __throw_length_error(const char* __s __attribute__((unused))) {}
22+
void __throw_bad_alloc() {}
23+
void __throw_bad_function_call() {}
1824
};
1925

2026
extern "C" int strcmp(const char* s1, const char* s2) {

0 commit comments

Comments
 (0)