mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-29 23:26:00 +00:00
Changed: Only display flushDebugStack messages if DisableNLDebug is not set
--HG-- branch : develop
This commit is contained in:
parent
68b23fe50f
commit
296ca5133f
1 changed files with 5 additions and 5 deletions
|
@ -154,15 +154,15 @@ void flushDebugStack(const std::string &title)
|
|||
strTmp = toString("\n");
|
||||
DebugFile.serialBuffer((uint8*)strTmp.c_str(), (uint)strTmp.size());
|
||||
}
|
||||
// No Output File -> nlwarning
|
||||
else
|
||||
// No Output File -> nldebug only if DisableNLDebug not set to true
|
||||
else if (!DisableNLDebug)
|
||||
{
|
||||
nlwarning("%s", title.c_str());
|
||||
nldebug("%s", title.c_str());
|
||||
for(uint i=0; i<DebugStack.size(); ++i)
|
||||
nlwarning(" %s", DebugStack[i].c_str());
|
||||
nldebug(" %s", DebugStack[i].c_str());
|
||||
|
||||
// Empty line separator
|
||||
nlwarning("");
|
||||
nldebug("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue