#pragma once template struct CCallback_; template struct CCallback_ { static R invoke(Ts... args, void* u) { return (*reinterpret_cast(u))(args...); } }; /// @brief Wrapper for passing closures through C-style callbacks. /// @tparam F Type of the closure template using CCallback = CCallback_;