mitigating fragmented heap

This commit is contained in:
jpirnay
2026-04-17 17:02:50 +02:00
parent 33c8b9d654
commit de314182f7
3 changed files with 12 additions and 5 deletions
+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&);