fixed BREAKPOINT macro on mingw

This commit is contained in:
emekoi 2019-12-08 15:56:30 -06:00 committed by Andrew Kelley
parent d57370d3ca
commit c2342dab0b

View File

@ -38,7 +38,11 @@
#define ATTRIBUTE_NORETURN __attribute__((noreturn)) #define ATTRIBUTE_NORETURN __attribute__((noreturn))
#define ATTRIBUTE_MUST_USE __attribute__((warn_unused_result)) #define ATTRIBUTE_MUST_USE __attribute__((warn_unused_result))
#if defined(__MINGW32__) || defined(__MINGW64__)
#define BREAKPOINT __debugbreak()
#else
#define BREAKPOINT raise(SIGTRAP) #define BREAKPOINT raise(SIGTRAP)
#endif
#endif #endif