mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-02-01 11:15:13 +01:00
23 lines
234 B
C++
23 lines
234 B
C++
#pragma once
|
|
|
|
#if _WIN32
|
|
#include <debugapi.h>
|
|
#endif
|
|
|
|
/**
|
|
* Utility methods for asserting and logging.
|
|
*/
|
|
namespace Debug
|
|
{
|
|
void Break()
|
|
{
|
|
#if DEBUG
|
|
#if _WIN32
|
|
if (IsDebuggerPresent()) {
|
|
DebugBreak();
|
|
}
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|