mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
## TactilityC - Add `tt_lvgl_lock()` and `tt_lvgl_unlock()` - Add `tt_thread_set_affinity()` - Add support for STL symbols ## Other - Add `Thread::setAffinity()` - `GuiService`: replace `#define` with `constexpr` - Remove log storage and log app for now - Split up ELF symbols into more groups
19 lines
724 B
C++
19 lines
724 B
C++
#include <symbols/stl.h>
|
|
|
|
#include <bits/functexcept.h>
|
|
|
|
extern "C" {
|
|
extern void* _Znwj(uint32_t size); // operator new(unsigned int)
|
|
extern void _ZdlPvj(void* p, uint64_t size); // operator delete(void*, unsigned int)
|
|
}
|
|
|
|
const esp_elfsym stl_symbols[] = {
|
|
ESP_ELFSYM_EXPORT(_Znwj), // operator new(unsigned int)
|
|
ESP_ELFSYM_EXPORT(_ZdlPvj), // operator delete(void*, unsigned int)
|
|
// Note: You have to use the mangled names here
|
|
{ "_ZSt20__throw_length_errorPKc", (void*)&(std::__throw_length_error) },
|
|
{ "_ZSt28__throw_bad_array_new_lengthv", (void*)&(std::__throw_bad_array_new_length) },
|
|
{ "_ZSt17__throw_bad_allocv", (void*)&(std::__throw_bad_alloc) }
|
|
// { "", (void*)&(std::) },
|
|
};
|