24 return (
static_cast<Owner*
>(owner)->*Member)(args...);
26 catch (
const std::exception& error)
28 Log::Error(
"Unhandled exception in a host event: {}", error.what());
33 Log::Error(
"Unhandled non-standard exception in a host event.");
Owns one registration and releases it on destruction.
The argument types a command handler's parameter list is written in.
Subscription HostSubscription(IPluginEvents &events, uint64_t token)
void Error(std::format_string< Args... > fmt, Args &&... args)
std::expected< T, Error > Result
virtual void Unsubscribe(uint64_t token)=0
static Result Call(void *owner, Args... args) noexcept