Grindstone Game Engine
v0.2.0
An open source game engine and toolkit.
Loading...
Searching...
No Matches
Break.hpp
1
#pragma once
2
3
#if defined(_WIN32)
4
#define GS_DEBUG_BREAK __debugbreak()
5
#elif defined(GS_COMPILER_CLANG)
6
#define GS_DEBUG_BREAK __builtin_debugtrap()
7
#elif defined(GS_COMPILER_ARM)
8
#define GS_DEBUG_BREAK __breakpoint(42)
9
#elif defined(GS_PLATFORM_POSIX)
10
#include <signal.h>
11
#if defined(SIGTRAP)
12
#define GS_DEBUG_BREAK raise(SIGTRAP)
13
#else
14
#define GS_DEBUG_BREAK raise(SIGABRT)
15
#endif
16
#else
17
#define GS_DEBUG_BREAK
18
#endif
sources
code
Common
Break.hpp
Generated by
1.12.0