diff options
Diffstat (limited to 'include/global.h')
| -rw-r--r-- | include/global.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/global.h b/include/global.h index 3cd7c1d0..f62b250d 100644 --- a/include/global.h +++ b/include/global.h @@ -119,6 +119,17 @@ typedef struct { s8 y; } PACKED Coords8; +union SplitDWord { + s64 DWORD; + u64 DWORD_U; + struct { + s32 LO, HI; + } HALF; + struct { + u32 LO, HI; + } HALF_U; +}; + union SplitWord { s32 WORD; u32 WORD_U; @@ -152,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 |
