diff options
| author | Theo <65437533+notyourav@users.noreply.github.com> | 2024-01-21 00:50:07 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-21 00:50:07 -0800 |
| commit | d8a9e54fa97d5657ebbf7b8a6fc5ce4d44d622b2 (patch) | |
| tree | b2ec2b8086005176092886ac69f1236f48069297 /include/global.h | |
| parent | eaaeb3a6178dbfc084596c7a953d63c2ebc59f93 (diff) | |
| parent | d7c02737e9d287a40f559b05b3c187b44c4b7624 (diff) | |
Merge pull request #689 from KEKW555/KEKW555-patch-3
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 |
