Skip to content

Commit a45c789

Browse files
author
nitrocaster
committed
Compiler.inl: Add DEBUG_BREAK macro.
1 parent 82fe59f commit a45c789

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Common/Compiler.inl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,12 @@
1414
#define NO_INLINE __attribute__((noinline))
1515
#define FORCE_INLINE __attribute__((always_inline)) inline
1616
#define ALIGN(a) __attribute__((aligned(a)))
17+
#define DEBUG_BREAK asm("int $3")
1718
#elif defined(_MSC_VER)
1819
#define NO_INLINE __declspec(noinline)
1920
#define FORCE_INLINE __forceinline
2021
#define ALIGN(a) __declspec(align(a))
22+
#define DEBUG_BREAK _asm { int 3 }
2123
#define __thread __declspec(thread)
2224
#endif
2325

0 commit comments

Comments
 (0)