We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e13c2c5 commit 019c8b5Copy full SHA for 019c8b5
src/Common/Compiler.inl
@@ -2,6 +2,10 @@
2
#error Unsupported compiler
3
#endif
4
5
+#ifdef _MSC_VER
6
+#include <intrin.h> // for __debugbreak
7
+#endif
8
+
9
#if defined(__GNUC__)
10
#define XR_EXPORT __attribute__ ((visibility("default")))
11
#define XR_IMPORT __attribute__ ((visibility("default")))
@@ -19,7 +23,7 @@
19
23
#define NO_INLINE __declspec(noinline)
20
24
#define FORCE_INLINE __forceinline
21
25
#define ALIGN(a) __declspec(align(a))
22
-#define DEBUG_BREAK _asm { int 3 }
26
+#define DEBUG_BREAK __debugbreak()
27
#define __thread __declspec(thread)
28
29
0 commit comments