PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
debug_break.h
1#pragma once
2
3#include <csignal>
4#if defined(_MSC_VER)
5#include <intrin.h>
6#endif
7
8namespace pixelbullet::platform
9{
10inline 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