fopAcM_Register cleanup (#3047)

* use macro `fopAcM_Register` more consistently

* replace fopAcM_RegisterCreateID with version that doesn't create `a_this`
This commit is contained in:
roeming
2026-01-17 08:52:32 -05:00
committed by GitHub
parent 740387eb4f
commit d45b10d0fd
101 changed files with 184 additions and 200 deletions
+3 -3
View File
@@ -642,7 +642,7 @@ static int daE_DF_IsDelete(daE_DF_c* i_this) {
}
static int daE_DF_Delete(daE_DF_c* i_this) {
fpc_ProcID proc_id = fopAcM_GetID(i_this);
fopAcM_RegisterDeleteID(i_this, "E_DF");
return i_this->Delete();
}
@@ -655,7 +655,7 @@ int daE_DF_c::Create() {
mArg0 = (u8)fopAcM_GetParam(this);
if (mArg0 != 0xff && dComIfGs_isSwitch(mArg0, fopAcM_GetRoomNo(this))) {
OS_REPORT("E_WS やられ後なので再セットしません");
OS_REPORT("E_WS やられ後なので再セットしません\n");
return cPhs_ERROR_e;
}
@@ -706,7 +706,7 @@ int daE_DF_c::Create() {
static int daE_DF_Create(fopAc_ac_c* i_this) {
daE_DF_c* a_this = (daE_DF_c*)i_this;
fpc_ProcID proc_id = fopAcM_GetID(i_this);
fopAcM_RegisterCreateID(i_this, "E_DF");
return a_this->Create();
}