Stop relying on _DEBUG
This commit is contained in:
parent
4907b84a84
commit
2bcf32e2cf
@ -710,7 +710,7 @@ int GuessBestScale()
|
|||||||
|
|
||||||
int main(int argc, char * argv[])
|
int main(int argc, char * argv[])
|
||||||
{
|
{
|
||||||
#if defined(_DEBUG) && defined(_MSC_VER)
|
#if defined(DEBUG) && defined(_MSC_VER)
|
||||||
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
|
_CrtSetReportMode(_CRT_ASSERT, _CRTDBG_MODE_DEBUG);
|
||||||
#endif
|
#endif
|
||||||
currentWidth = WINDOWW;
|
currentWidth = WINDOWW;
|
||||||
@ -865,7 +865,7 @@ int main(int argc, char * argv[])
|
|||||||
engine->Begin(WINDOWW, WINDOWH);
|
engine->Begin(WINDOWW, WINDOWH);
|
||||||
engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true));
|
engine->SetFastQuit(Client::Ref().GetPrefBool("FastQuit", true));
|
||||||
|
|
||||||
#if !defined(DEBUG) && !defined(_DEBUG)
|
#if !defined(DEBUG)
|
||||||
//Get ready to catch any dodgy errors
|
//Get ready to catch any dodgy errors
|
||||||
signal(SIGSEGV, SigHandler);
|
signal(SIGSEGV, SigHandler);
|
||||||
signal(SIGFPE, SigHandler);
|
signal(SIGFPE, SigHandler);
|
||||||
@ -881,7 +881,7 @@ int main(int argc, char * argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
GameController * gameController = NULL;
|
GameController * gameController = NULL;
|
||||||
#if !defined(DEBUG) && !defined(_DEBUG)
|
#if !defined(DEBUG)
|
||||||
try {
|
try {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -971,7 +971,7 @@ int main(int argc, char * argv[])
|
|||||||
EngineProcess();
|
EngineProcess();
|
||||||
SaveWindowPosition();
|
SaveWindowPosition();
|
||||||
|
|
||||||
#if !defined(DEBUG) && !defined(_DEBUG)
|
#if !defined(DEBUG)
|
||||||
}
|
}
|
||||||
catch(std::exception& e)
|
catch(std::exception& e)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user