Skip to content

Commit

Permalink
Move function casts to typedef
Browse files Browse the repository at this point in the history
  • Loading branch information
KEKW555 authored Jan 6, 2024
1 parent 973257b commit d7c0273
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/global.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d7c0273

Please sign in to comment.