Various debug conditional compilation cleanup (#2915)

* Global: Define DEBUG as 0 if not already defined

* Clean up DEBUG-guarded code
This commit is contained in:
Max Roncace
2025-12-06 16:34:47 -05:00
committed by GitHub
parent 9f1a648851
commit a30e617e5a
316 changed files with 1133 additions and 1267 deletions
+5 -5
View File
@@ -39,7 +39,7 @@ static dCcD_SrcCyl l_ccDCyl = {
static daObj_KBacket_Param_c l_HIO;
static inline const daObj_KBacket_HIOParam* get_params(daObj_KBacket_c* i_this) {
#ifdef DEBUG
#if DEBUG
return &i_this->mHIO->param;
#else
return &daObj_KBacket_Param_c::m;
@@ -48,7 +48,7 @@ static inline const daObj_KBacket_HIOParam* get_params(daObj_KBacket_c* i_this)
daObj_KBacket_c::~daObj_KBacket_c() {
OS_REPORT("|%06d:%x|daObj_KBacket_c -> デストラクト\n", g_Counter.mCounter0, this);
#ifdef DEBUG
#if DEBUG
if (mHIO != NULL) {
mHIO->removeHIO();
}
@@ -340,7 +340,7 @@ int daObj_KBacket_c::Execute() {
field_0xa4a = 1;
} else {
if (mObjAcch.ChkGroundHit() != 0) {
#ifndef DEBUG
#if !DEBUG
fopAcM_seStart(this, Z2SE_OBJ_WOODSTICK_BOUND, 0);
#endif
if (field_0x9d4.y < -30.0f) {
@@ -359,7 +359,7 @@ int daObj_KBacket_c::Execute() {
} else {
if (field_0xa4a != 0) {
if (mObjAcch.ChkGroundHit() != 0) {
#ifndef DEBUG
#if !DEBUG
fopAcM_seStart(this, Z2SE_OBJ_WOODSTICK_BOUND, 0);
#endif
if (this->field_0x9d4.y < -30.0f) {
@@ -376,7 +376,7 @@ int daObj_KBacket_c::Execute() {
}
} else {
if (field_0xa49 != 0) {
#ifndef DEBUG
#if !DEBUG
fopAcM_seStart(this, Z2SE_OBJ_WOODSTICK_PUT, 0);
#endif
} else {