mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-15 11:25:26 +00:00
xrt: Tidy xrt_compiler.h and silence some doxygen warnings
This commit is contained in:
parent
b59676e184
commit
7c73a1b6bd
|
@ -54,13 +54,14 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef XRT_DOXYGEN
|
||||||
/*!
|
/*!
|
||||||
* @define XRT_DEBUGBREAK()
|
|
||||||
* To trigger a trap/break in the debugger.
|
* To trigger a trap/break in the debugger.
|
||||||
*
|
*
|
||||||
* @ingroup xrt_iface
|
* @ingroup xrt_iface
|
||||||
*/
|
*/
|
||||||
#if defined(__clang__) || defined(__GNUC__)
|
#define XRT_DEBUGBREAK()
|
||||||
|
#elif defined(__clang__) || defined(__GNUC__)
|
||||||
#define XRT_DEBUGBREAK() __builtin_trap()
|
#define XRT_DEBUGBREAK() __builtin_trap()
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
|
@ -81,8 +82,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* @define container_of(ptr, type, field)
|
|
||||||
*
|
|
||||||
* Get the holder from a pointer to a field.
|
* Get the holder from a pointer to a field.
|
||||||
*
|
*
|
||||||
* @ingroup xrt_iface
|
* @ingroup xrt_iface
|
||||||
|
|
Loading…
Reference in a new issue