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 da996ce commit 817f2a7Copy full SHA for 817f2a7
src/Common/Compiler.inl
@@ -14,6 +14,12 @@
14
#define XR_IMPORT __declspec(dllimport)
15
#endif
16
17
+#if defined(__GNUC__)
18
+#define XR_ASSUME(expr) if (expr){} else __builtin_unreachable()
19
+#elif defined(_MSC_VER)
20
+#define XR_ASSUME(expr) __assume(expr)
21
+#endif
22
+
23
#if defined(__GNUC__)
24
#define NO_INLINE __attribute__((noinline))
25
#define FORCE_INLINE __attribute__((always_inline)) inline
0 commit comments