PixelBullet
0.0.1
A C++ game engine
Loading...
Searching...
No Matches
engine
include
pixelbullet
core
debug_break.h
1
#pragma once
2
3
#include <csignal>
4
#if defined(_MSC_VER)
5
#include <intrin.h>
6
#endif
7
8
namespace
pixelbullet::platform
9
{
10
inline
void
debug_break() noexcept
11
{
12
#if defined(_MSC_VER)
13
__debugbreak();
14
#elif defined(SIGTRAP)
15
std::raise(SIGTRAP);
16
#endif
17
}
18
}
// namespace pixelbullet::platform
Generated by
1.16.1