forked from ReScrap/ScrapHacks
Add method to call void function
This commit is contained in:
parent
1ac0a9955b
commit
5e65eecf8b
1 changed files with 9 additions and 0 deletions
|
@ -119,6 +119,15 @@ public:
|
|||
return this->orig;
|
||||
}
|
||||
|
||||
template <typename F, typename... Args>
|
||||
void func_void(Args... args)
|
||||
{
|
||||
disable();
|
||||
reinterpret_cast<F>(this->orig)(args...);
|
||||
enable();
|
||||
return;
|
||||
}
|
||||
|
||||
template <typename F, typename... Args>
|
||||
decltype(auto) func(Args... args)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue