Removed _debugBreak() again, as there is already MIJIN_TRAP().
This commit is contained in:
@@ -44,16 +44,4 @@ void setCurrentThreadName(const char* threadName) noexcept;
|
||||
|
||||
} // namespace mijin
|
||||
|
||||
#if MIJIN_TARGET_OS == MIJIN_OS_LINUX || MIJIN_TARGET_OS == MIJIN_OS_OSX
|
||||
#if !defined(SIGTRAP)
|
||||
static constexpr int SIGTRAP = 5;
|
||||
#endif
|
||||
#define _debugBreak() (void) std::raise(SIGTRAP)
|
||||
#elif MIJIN_TARGET_OS == MIJIN_OS_WINDOWS
|
||||
extern "C" __declspec(dllimport) void __stdcall DebugBreak();
|
||||
#define _debugBreak() DebugBreak()
|
||||
#else
|
||||
#define _debugBreak() ((void)0)
|
||||
#endif
|
||||
|
||||
#endif // !defined(MIJIN_UTIL_OS_HPP_INCLUDED)
|
||||
|
||||
Reference in New Issue
Block a user