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
+11 -10
View File
@@ -8,7 +8,7 @@
#include "d/actor/d_a_andsw.h"
#include "d/d_procname.h"
#ifdef DEBUG
#if DEBUG
daAndsw_HIO_c l_HIO;
daAndsw_HIO_c::daAndsw_HIO_c() {
@@ -42,7 +42,7 @@ int daAndsw_c::create() {
return cPhs_ERROR_e;
}
#ifdef DEBUG
#if DEBUG
l_HIO.entryHIO("SW監視");
#endif
@@ -58,7 +58,7 @@ int daAndsw_c::execute() {
if (mTimer == 0) {
fopAcM_offSwitch(this,mSwNo);
#ifdef DEBUG
#if DEBUG
if (l_HIO.field_0x6 != 0) {
OS_REPORT("-- SW監視状態出力 --\n");
OS_REPORT("sw<%d>OFFしました\n", mSwNo);
@@ -70,19 +70,20 @@ int daAndsw_c::execute() {
OS_REPORT("SW監視:SWOFFしたので処理終わりますSW<%d>\n", mSwNo);
}
}
}
#ifdef DEBUG
else if (l_HIO.field_0x6 != 0) {
OS_REPORT("sw2<%d>を待っています\n", mSwNo2);
l_HIO.field_0x6 = 0;
}
} else {
#if DEBUG
if (l_HIO.field_0x6 != 0) {
OS_REPORT("sw2<%d>を待っています\n", mSwNo2);
l_HIO.field_0x6 = 0;
}
#endif
}
return 1;
}
int daAndsw_c::_delete() {
#ifdef DEBUG
#if DEBUG
l_HIO.removeHIO();
#endif
return 1;