mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-30 10:55:04 +00:00
Some checks failed
Nightly Server Release / build (Windows64) (push) Has been cancelled
Nightly Release / build (Windows64) (push) Has been cancelled
Nightly Server Release / release (push) Has been cancelled
Nightly Server Release / Build and Push Docker Image (push) Has been cancelled
Nightly Server Release / cleanup (push) Has been cancelled
Nightly Release / release (push) Has been cancelled
Nightly Release / cleanup (push) Has been cancelled
12 lines
302 B
C++
12 lines
302 B
C++
#pragma once
|
|
#include <csignal>
|
|
|
|
#if defined(_MSC_VER)
|
|
#define DEBUG_BREAK() __debugbreak()
|
|
#elif defined(__GNUC__) || defined(__clang__)
|
|
#define DEBUG_BREAK() __builtin_trap()
|
|
#elif defined(SIGTRAP)
|
|
#define DEBUG_BREAK() std::raise(SIGTRAP)
|
|
#else
|
|
#define DEBUG_BREAK() ((void)0)
|
|
#endif |