Removed _debugBreak() again, as there is already MIJIN_TRAP().
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user