From a45c78902dbdb4ae898879035b5ab0985ce1100b Mon Sep 17 00:00:00 2001 From: nitrocaster Date: Sun, 17 Jan 2016 16:38:54 +0300 Subject: [PATCH] Compiler.inl: Add DEBUG_BREAK macro. --- src/Common/Compiler.inl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Common/Compiler.inl b/src/Common/Compiler.inl index 837f6ebaa2f..15f8c03bf22 100644 --- a/src/Common/Compiler.inl +++ b/src/Common/Compiler.inl @@ -14,10 +14,12 @@ #define NO_INLINE __attribute__((noinline)) #define FORCE_INLINE __attribute__((always_inline)) inline #define ALIGN(a) __attribute__((aligned(a))) +#define DEBUG_BREAK asm("int $3") #elif defined(_MSC_VER) #define NO_INLINE __declspec(noinline) #define FORCE_INLINE __forceinline #define ALIGN(a) __declspec(align(a)) +#define DEBUG_BREAK _asm { int 3 } #define __thread __declspec(thread) #endif