xrt: Tidy xrt_compiler.h and silence some doxygen warnings

This commit is contained in:
Jakob Bornecrantz 2019-11-02 22:49:47 +00:00
parent b59676e184
commit 7c73a1b6bd

View file

@ -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