summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorroeming <brother64youyou@gmail.com>2026-01-17 08:52:32 -0500
committerGitHub <noreply@github.com>2026-01-17 15:52:32 +0200
commitd45b10d0fd2697b29f7a88e29456dda6cf0aeae6 (patch)
tree82686f75b7f501b49e3bd9e97e3546c7493f5f30 /include
parent740387eb4fdea77e60dea9b265f41a7c564c9a32 (diff)
`fopAcM_Register` cleanup (#3047)
* use macro `fopAcM_Register` more consistently * replace fopAcM_RegisterCreateID with version that doesn't create `a_this`
Diffstat (limited to 'include')
-rw-r--r--include/f_op/f_op_actor_mng.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/include/f_op/f_op_actor_mng.h b/include/f_op/f_op_actor_mng.h
index a5518264b7..5e67374270 100644
--- a/include/f_op/f_op_actor_mng.h
+++ b/include/f_op/f_op_actor_mng.h
@@ -12,26 +12,23 @@
#include "f_pc/f_pc_manager.h"
#include "m_Do/m_Do_hostIO.h"
-#define fopAcM_ct(ptr, ClassName) \
- if (!fopAcM_CheckCondition(ptr, fopAcCnd_INIT_e)) { \
- new (ptr) ClassName(); \
- fopAcM_OnCondition(ptr, fopAcCnd_INIT_e); \
+#define fopAcM_ct(ptr, ClassName) \
+ if (!fopAcM_CheckCondition(ptr, fopAcCnd_INIT_e)) { \
+ new (ptr) ClassName(); \
+ fopAcM_OnCondition(ptr, fopAcCnd_INIT_e); \
}
-#define fopAcM_RegisterDeleteID(i_this, actor_name_str) \
- const fpc_ProcID procID = fopAcM_GetID(i_this); \
- "Delete -> " actor_name_str "(id=%d)\n"
+#define fopAcM_RegisterDeleteID(i_this, actor_name_str) \
+ ("Delete -> " actor_name_str "(id=%d)\n", fopAcM_GetID(i_this))
-#define fopAcM_RegisterCreateID(actor_class, i_this, actor_name_str) \
- actor_class* a_this = static_cast<actor_class*>(i_this); \
- const fpc_ProcID procID = fopAcM_GetID(i_this); \
- "Create -> " actor_name_str "(id=%d)\n"
+#define fopAcM_RegisterCreateID(i_this, actor_name_str) \
+ ("Create -> " actor_name_str "(id=%d)\n", fopAcM_GetID(i_this))
-#define fopAcM_RegisterDelete(i_this, actor_name_str) "Delete -> " actor_name_str "\n"
+#define fopAcM_RegisterDelete(i_this, actor_name_str) \
+ ("Delete -> " actor_name_str "\n")
-#define fopAcM_RegisterCreate(actor_class, i_this, actor_name_str) \
- static_cast<actor_class*>(i_this); \
- "Create -> " actor_name_str "\n"
+#define fopAcM_RegisterCreate(i_this, actor_name_str) \
+ ("Create -> " actor_name_str "\n")
class J3DModelData; // placeholder
class JKRHeap;