diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-10 14:21:46 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-10 14:22:10 -0400 |
commit | a7b9345f1448bb216b7a5c1fbf9bee5734682a5e (patch) | |
tree | b5049e83879e49c97d7102eed233a77f484641ba /include | |
parent | 1b70ce78740696fad370efac0fbf08bf196616cf (diff) |
TObject: Correct some minor stuff
Diffstat (limited to 'include')
-rw-r--r-- | include/pso/TObject.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/pso/TObject.h b/include/pso/TObject.h index b224225..8d3e6e8 100644 --- a/include/pso/TObject.h +++ b/include/pso/TObject.h @@ -34,6 +34,7 @@ enum object_flags { BIT_15 = 0x8000, ALL_BITS = 0xFFFF }; + static inline object_flags operator^(object_flags a, object_flags b) { return static_cast<object_flags>(static_cast<u16>(a) ^ static_cast<u16>(b)); }; static inline object_flags operator&(object_flags a, object_flags b) { return static_cast<object_flags>(static_cast<u16>(a) & static_cast<u16>(b)); }; static inline object_flags operator|(object_flags a, object_flags b) { return static_cast<object_flags>(static_cast<u16>(a) | static_cast<u16>(b)); }; @@ -89,7 +90,7 @@ public: void log(const char *str); int get_node_count(); bool all_parents_unqueued_for_destruction(); - static void *alloc(unsigned long size); + static void *alloc(size_t size); static void free(void *ptr); bool toggle_flag_9_if_flag_10_is_clear(); |