From 8a483ebab22f0ef4f93c80fa23d455b207b48bda Mon Sep 17 00:00:00 2001 From: Yanis <35189056+Yanis002@users.noreply.github.com> Date: Fri, 24 Apr 2026 16:38:34 +0200 Subject: [PATCH] Add return type in PTMF template (#60) --- include/types.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/types.h b/include/types.h index 8b2c46bf..b3eafe6f 100644 --- a/include/types.h +++ b/include/types.h @@ -40,11 +40,11 @@ typedef s32 unk32; #define CEIL_DIV(a, b) (((a) + (b) - 1) / (b)) #ifdef __cplusplus - #define DECL_PTMF(name, ...) \ - template struct name { \ - typedef void (T::*PTMFCallback)(__VA_ARGS__); \ - \ - PTMFCallback callback; \ + #define DECL_PTMF(name, ...) \ + template struct name { \ + typedef R (T::*PTMFCallback)(__VA_ARGS__); \ + \ + PTMFCallback callback; \ }; #define CALL_PTMF(type, data, ...) \