1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-22 14:24:33 +01:00
Files
OpenRCT2/src/core/Diagnostics.cpp
2016-04-22 18:25:20 +01:00

24 lines
331 B
C++

#include <SDL_platform.h>
#if defined(DEBUG) && defined(__WINDOWS__)
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#endif
#include "Diagnostics.hpp"
namespace Debug
{
void Break()
{
#if DEBUG
#if __WINDOWS__
if (IsDebuggerPresent())
{
DebugBreak();
}
#endif
#endif
}
}