Prepare MMIO support

This commit is contained in:
momo5502
2024-11-18 16:58:23 +01:00
parent f19945121e
commit 49a8435f6b
3 changed files with 44 additions and 22 deletions

View File

@@ -13,6 +13,8 @@ public:
using c_function_type = ReturnType(Args..., user_data_pointer);
using functor_type = std::function<ReturnType(Args...)>;
function_wrapper() = default;
function_wrapper(functor_type functor)
: functor_(std::make_unique<functor_type>(std::move(functor)))
{