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 00e599304a
commit cf492884ea
316 changed files with 1133 additions and 1267 deletions
+3 -7
View File
@@ -259,9 +259,7 @@ int daObjKGate_c::Create() {
l_cull_box.max.y, l_cull_box.max.z);
if (dComIfG_Bgsp().Regist(mpBgW, this)) {
#ifdef DEBUG
OSReport_Error("キコルの門:BG登録失敗しました\n");
#endif
OS_REPORT_ERROR("キコルの門:BG登録失敗しました\n");
return 0;
}
@@ -336,7 +334,7 @@ int daObjKGate_c::create1st() {
phase_state =
MoveBGCreate(l_arcName[mNameArg], l_gateDzbIdx[mNameArg], NULL, heap_size, NULL);
if (phase_state == cPhs_ERROR_e) {
#ifdef DEBUG
#if DEBUG
OSReport("KGATE PARAM:%x\n", fopAcM_GetParam(this));
#endif
return phase_state;
@@ -956,9 +954,7 @@ int daObjKGate_c::Draw() {
int daObjKGate_c::Delete() {
if (mpBgW != NULL && mpBgW->ChkUsed()) {
if (dComIfG_Bgsp().Release(mpBgW)) {
#ifdef DEBUG
OSReport("Release Error\n");
#endif
OS_REPORT("Release Error\n");
}
}