mirror of
https://github.com/zeldaret/tp
synced 2026-06-04 02:47:02 -04:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user