mirror of
https://github.com/esphome/esphome.git
synced 2026-10-10 13:33:06 +00:00
21 lines
714 B
C++
21 lines
714 B
C++
/*
|
|
* Linker wrap stub for __cxa_atexit().
|
|
*
|
|
* GCC registers the destructor of every global and function local static
|
|
* object with __cxa_atexit(). The firmware never returns from main or calls
|
|
* exit(), so these destructors never run, but the first registration links
|
|
* newlib's exit handler tables.
|
|
*/
|
|
|
|
#include "esphome/core/defines.h"
|
|
|
|
#ifdef USE_LIBRETINY
|
|
|
|
namespace esphome::libretiny {}
|
|
|
|
// NOLINTBEGIN(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp,readability-identifier-naming)
|
|
extern "C" int __wrap___cxa_atexit(void (*)(void *), void *, void *) { return 0; }
|
|
// NOLINTEND(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp,readability-identifier-naming)
|
|
|
|
#endif // USE_LIBRETINY
|