From d7c02737e9d287a40f559b05b3c187b44c4b7624 Mon Sep 17 00:00:00 2001 From: KEKW555 <152369890+KEKW555@users.noreply.github.com> Date: Sun, 7 Jan 2024 00:01:13 +0530 Subject: [PATCH] Move function casts to typedef --- include/global.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/global.h b/include/global.h index f5621806..f62b250d 100644 --- a/include/global.h +++ b/include/global.h @@ -163,4 +163,10 @@ struct Entity_; #define BIT(bit) (1 << (bit)) #define IS_BIT_SET(value, bit) ((value)&BIT(bit)) +/** + * Multi return function data type casts + */ +typedef u64 (*MultiReturnTypeSingleEntityArg)(struct Entity_*); +typedef s64 (*MultiReturnTypeTwoS32Arg)(s32, s32); + #endif // GLOBAL_H