mitigating fragmented heap

This commit is contained in:
jpirnay committed 2026-04-17 17:02:50 +02:00
1 parent 33c8b9d654
commit de314182f7
3 files changed
+12 -5

No files matched your search

+1 -1
View File
@@ -53,7 +53,7 @@ struct SettingInfo {
// Function pointers + opaque context avoid the heap allocation of std::function. Stateless
// lambdas pass ctx=nullptr; captures must be hand-written as trampoline functions. See
// DynamicEnumCtx / DynamicStringCtx factories below.
using ValueGetterFn = uint8_t (*)(void*);
using ValueGetterFn = uint8_t (*)(const void*);
using ValueSetterFn = void (*)(void*, uint8_t);
using StringGetterFn = std::string (*)(void*);
using StringSetterFn = void (*)(void*, const std::string&);