diff options
author | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-12 11:38:48 -0400 |
---|---|---|
committer | mrb0nk500 <b0nk@b0nk.xyz> | 2023-02-12 11:38:48 -0400 |
commit | 0d06559bcc3d60595cedcab343408589dcdb9c94 (patch) | |
tree | 669642efeb2e86d84af98336db6079ce487d89a5 /include/pso/TMainTask.h | |
parent | 2fdd70e4eeb6b2ac82eb8be81fd23fa61bc2baeb (diff) |
TObject: Make non-function members private, and add getters, and setters
Diffstat (limited to 'include/pso/TMainTask.h')
-rw-r--r-- | include/pso/TMainTask.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/include/pso/TMainTask.h b/include/pso/TMainTask.h index 3eab543..3a6e59b 100644 --- a/include/pso/TMainTask.h +++ b/include/pso/TMainTask.h @@ -6,18 +6,18 @@ #include "pso/TObject.h" -#define X_OR_Y_CHILD(flags, old_flags, one_prefix, zero_prefix, suffix) \ - if (flags != old_flags) { \ - TMainTask *child; \ - u32 bit = 1; \ - FOREACH_NODE_NODECL_MULTI_ITER(TMainTask, main_task.down, child, bit <<= 1) { \ - if (flags & bit) { \ - child->one_prefix##_##suffix(); \ - } else { \ - child->zero_prefix##_##suffix(); \ - } \ - } \ - old_flags = flags; \ +#define X_OR_Y_CHILD(flags, old_flags, one_prefix, zero_prefix, suffix) \ + if (flags != old_flags) { \ + TMainTask *child; \ + u32 bit = 1; \ + FOREACH_NODE_NODECL_MULTI_ITER(TMainTask, main_task.get_down(), child, bit <<= 1) { \ + if (flags & bit) { \ + child->one_prefix##_##suffix(); \ + } else { \ + child->zero_prefix##_##suffix(); \ + } \ + } \ + old_flags = flags; \ } #define SET_OR_CLEAR_CHILD_FLAGS(flags, old_flags, flag_bit) \ |