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
+3 -3
View File
@@ -23,7 +23,7 @@ daWtGate_HIO_c::daWtGate_HIO_c() {
field_0x9 = 4;
}
#ifdef DEBUG
#if DEBUG
void daWtGate_HIO_c::genMessage(JORMContext* ctx) {
// "Maximum speed"
ctx->genSlider("最大速度", &mMaxSpeed, 0.1, 500.0, 0, NULL, 0xffff, 0xffff, 0x200, 0x18);
@@ -82,7 +82,7 @@ cPhs__Step daWtGate_c::create() {
// "Sluice gate(Lv3)"
#ifdef DEBUG
#if DEBUG
l_HIO.entryHIO("水門(Lv3)");
#endif
}
@@ -180,7 +180,7 @@ int daWtGate_c::Draw() {
int daWtGate_c::Delete() {
dComIfG_resDelete(&mPhase, "S_Zsuimon");
#ifdef DEBUG
#if DEBUG
l_HIO.removeHIO();
#endif