mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-14 03:09:08 +00:00
Backed out from 5942903
This commit is contained in:
parent
32acbd5297
commit
6be000a530
3 changed files with 21 additions and 1 deletions
|
@ -1193,7 +1193,13 @@ void createDebug (const char *logPath, bool logInFile, bool eraseLastLog)
|
||||||
INelContext::getInstance().setAssertLog(new CLog (CLog::LOG_ASSERT));
|
INelContext::getInstance().setAssertLog(new CLog (CLog::LOG_ASSERT));
|
||||||
|
|
||||||
sd = new CStdDisplayer ("DEFAULT_SD");
|
sd = new CStdDisplayer ("DEFAULT_SD");
|
||||||
|
|
||||||
|
#ifdef NL_OS_WINDOWS
|
||||||
|
if (TrapCrashInDebugger || !IsDebuggerPresent ())
|
||||||
|
{
|
||||||
DefaultMsgBoxDisplayer = new CMsgBoxDisplayer ("DEFAULT_MBD");
|
DefaultMsgBoxDisplayer = new CMsgBoxDisplayer ("DEFAULT_MBD");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#if LOG_IN_FILE
|
#if LOG_IN_FILE
|
||||||
if (logInFile)
|
if (logInFile)
|
||||||
|
|
|
@ -529,6 +529,7 @@ void CFileDisplayer::doDisplay ( const CLog::TDisplayInfo& args, const char *mes
|
||||||
// in release "<Msg>"
|
// in release "<Msg>"
|
||||||
void CMsgBoxDisplayer::doDisplay ( const CLog::TDisplayInfo& args, const char *message)
|
void CMsgBoxDisplayer::doDisplay ( const CLog::TDisplayInfo& args, const char *message)
|
||||||
{
|
{
|
||||||
|
#ifdef NL_OS_WINDOWS
|
||||||
|
|
||||||
bool needSpace = false;
|
bool needSpace = false;
|
||||||
// stringstream ss;
|
// stringstream ss;
|
||||||
|
@ -719,6 +720,7 @@ void CMsgBoxDisplayer::doDisplay ( const CLog::TDisplayInfo& args, const char *m
|
||||||
}
|
}
|
||||||
*/ }
|
*/ }
|
||||||
|
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -52,6 +52,16 @@ void setReportEmailFunction (void *emailFunction)
|
||||||
EmailFunction = (TEmailFunction)emailFunction;
|
EmailFunction = (TEmailFunction)emailFunction;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef NL_OS_WINDOWS
|
||||||
|
|
||||||
|
// GNU/Linux, do nothing
|
||||||
|
|
||||||
|
void report ()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
TReportResult report (const std::string &title, const std::string &header, const std::string &subject, const std::string &body, bool enableCheckIgnore, uint debugButton, bool ignoreButton, sint quitButton, bool sendReportButton, bool &ignoreNextTime, const string &attachedFile)
|
TReportResult report (const std::string &title, const std::string &header, const std::string &subject, const std::string &body, bool enableCheckIgnore, uint debugButton, bool ignoreButton, sint quitButton, bool sendReportButton, bool &ignoreNextTime, const string &attachedFile)
|
||||||
{
|
{
|
||||||
std::string fname = "rcerrorlog.txt";
|
std::string fname = "rcerrorlog.txt";
|
||||||
|
@ -82,5 +92,7 @@ TReportResult report (const std::string &title, const std::string &header, const
|
||||||
return ReportQuit;
|
return ReportQuit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
} // NLMISC
|
} // NLMISC
|
||||||
|
|
Loading…
Reference in a new issue