mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
24 lines
331 B
C++
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
|
|
}
|
|
}
|