Removed _debugBreak() again, as there is already MIJIN_TRAP().

This commit is contained in:
2023-11-01 23:53:50 +01:00
parent 522e6534bf
commit 54c63cfe69
2 changed files with 2 additions and 16 deletions

View File

@@ -8,18 +8,16 @@
#include <cstdlib>
#include <source_location>
#if MIJIN_DEBUG
#ifdef _WIN32
#pragma comment(lib, "kernel32")
extern "C" __declspec(dllimport) void __stdcall DebugBreak();
#define MIJIN_TRAP() DebugBreak()
#define MIJIN_FUNC() __FUNCSIG__
#else // _WIN32
#include <signal.h>
#define MIJIN_TRAP() raise(SIGTRAP)
#include <csignal>
#define MIJIN_TRAP() (void) std::raise(SIGTRAP)
#define MIJIN_FUNC() "" // TODO: __PRETTY_FUNCTION__ is not working for some reason -.-
#endif // !_WIN32
#endif // MIJIN_DEBUG
namespace mijin
{