mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-28 02:26:16 +00:00
include: Add XRT_DEBUGBREAK to xrt_cmmpiler.h
This commit is contained in:
parent
891eb7f1c4
commit
b7b27cc5a0
|
@ -42,3 +42,14 @@
|
|||
#else
|
||||
#define XRT_MAYBE_UNUSED
|
||||
#endif
|
||||
|
||||
/*!
|
||||
* @define XRT_DEBUGBREAK()
|
||||
* To trigger a trap/break in the debugger.
|
||||
*/
|
||||
#if defined(__clang__) || defined(__GNUC__)
|
||||
#define XRT_DEBUGBREAK() __builtin_trap()
|
||||
#elif defined(_MSC_VER)
|
||||
#include <intrin.h>
|
||||
#define XRT_DEBUGBREAK() __debugbreak()
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue