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
+4 -4
View File
@@ -68,7 +68,7 @@ void dMsgFlow_c::init(fopAc_ac_c* i_partner, int i_flowID, int param_2, fopAc_ac
setNodeIndex(nodeIdx, i_talkPartners);
}
#ifdef DEBUG
#if DEBUG
dbgPrint();
#endif
dMsgObject_setSelectWordFlag(0);
@@ -457,7 +457,7 @@ int dMsgFlow_c::setSelectMsg(mesg_flow_node* i_flowNode_p, mesg_flow_node* param
// "Message Set (Select)"
OS_REPORT("\x1B[44;37mメッセ−ジセット(選択)      \x1B[m|:");
#ifdef DEBUG
#if DEBUG
if (i_speaker_p != NULL) {
const char* speaker_name = fopAcM_getProcNameString(i_speaker_p);
OS_REPORT("flow:%d, msg:%d(%d), speaker:%s\n", mFlow, msg_no, temp_r25, speaker_name);
@@ -501,7 +501,7 @@ int dMsgFlow_c::setNormalMsg(mesg_flow_node* i_flowNode_p, fopAc_ac_c* i_speaker
// "Message Set"
OS_REPORT("\x1B[44;37mメッセ−ジセット          \x1B[m|:");
#ifdef DEBUG
#if DEBUG
if (i_speaker_p != NULL) {
const char* speaker_name = fopAcM_getProcNameString(i_speaker_p);
OS_REPORT("flow:%d, msg:%d, speaker:%s\n", mFlow, msg_no, speaker_name);
@@ -761,7 +761,7 @@ queryFunc dMsgFlow_c::mQueryList[53] = {
&dMsgFlow_c::query053,
};
#ifdef DEBUG
#if DEBUG
void dMsgFlow_c::dbgPrint() {}
#endif