mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-12-01 00:21:43 +00:00
- Make the 'crashout' CCMD available in non-win32.
This commit is contained in:
parent
a88f515364
commit
7c7c3fb54e
2 changed files with 17 additions and 17 deletions
|
@ -641,6 +641,23 @@ CCMD (error_fatal)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
//
|
||||||
|
// CCMD crashout
|
||||||
|
//
|
||||||
|
// Debugging routine for testing the crash logger.
|
||||||
|
// Useless in a win32 debug build, because that doesn't enable the crash logger.
|
||||||
|
//
|
||||||
|
//==========================================================================
|
||||||
|
|
||||||
|
#if !defined(_WIN32) || !defined(_DEBUG)
|
||||||
|
CCMD (crashout)
|
||||||
|
{
|
||||||
|
*(volatile int *)0 = 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
CCMD (dir)
|
CCMD (dir)
|
||||||
{
|
{
|
||||||
FString dir, path;
|
FString dir, path;
|
||||||
|
|
|
@ -1288,20 +1288,3 @@ int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE nothing, LPSTR cmdline, int n
|
||||||
MainThread = INVALID_HANDLE_VALUE;
|
MainThread = INVALID_HANDLE_VALUE;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//==========================================================================
|
|
||||||
//
|
|
||||||
// CCMD crashout
|
|
||||||
//
|
|
||||||
// Debugging routine for testing the crash logger.
|
|
||||||
// Useless in a debug build, because that doesn't enable the crash logger.
|
|
||||||
//
|
|
||||||
//==========================================================================
|
|
||||||
|
|
||||||
#ifndef _DEBUG
|
|
||||||
#include "c_dispatch.h"
|
|
||||||
CCMD (crashout)
|
|
||||||
{
|
|
||||||
*(int *)0 = 0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue