mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 12:00:17 +02:00
Thunks: Clarify return of a function pointer
This commit is contained in:
1 parent
c8951de9dd
commit
4b7ed9599d
1 file changed
+1
-1
@@ -114,7 +114,7 @@ inline Result CallHostFunction(Args... args) {
|
||||
template<typename Result, typename...Args>
|
||||
static auto GetCallerForHostFunction(Result (*host_func)(Args...))
|
||||
-> Result(*)(Args...) {
|
||||
return CallHostFunction<fexthunks_invoke_callback<Result(Args...)>, Result, Args...>;
|
||||
return &CallHostFunction<fexthunks_invoke_callback<Result(Args...)>, Result, Args...>;
|
||||
}
|
||||
|
||||
// Ensures the given host function can safely be called from guest code.
|
||||
|
||||
Reference in new issue
Block a user