ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
esp32
atexit_stubs.cpp
Go to the documentation of this file.
1
/*
2
* Linker wrap stub for __cxa_atexit().
3
*
4
* GCC registers the destructor of every global and function local static
5
* object with __cxa_atexit(). The firmware never returns from main or calls
6
* exit(), so these destructors never run, but the first registration links
7
* newlib's exit handler tables (about 400 bytes of RAM on ESP32).
8
*/
9
10
#include "
esphome/core/defines.h
"
11
12
#ifdef USE_ESP32
13
14
namespace
esphome::esp32
{}
15
16
// NOLINTBEGIN(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp,readability-identifier-naming)
17
extern
"C"
int
__wrap___cxa_atexit
(
void
(*)(
void
*),
void
*,
void
*) {
return
0; }
18
// NOLINTEND(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp,readability-identifier-naming)
19
20
#endif
// USE_ESP32
defines.h
__wrap___cxa_atexit
int __wrap___cxa_atexit(void(*)(void *), void *, void *)
Definition
atexit_stubs.cpp:17
esphome::esp32
Definition
atexit_stubs.cpp:14
Generated by
1.12.0