mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2024-12-29 11:06:18 +00:00
xrt: Add XRT_NO_INLINE define
This commit is contained in:
parent
1e93ba2461
commit
f5a93699cb
|
@ -43,6 +43,17 @@
|
|||
#define XRT_MAYBE_UNUSED
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* To stop inlining.
|
||||
*/
|
||||
#if defined(__GNUC__)
|
||||
#define XRT_NO_INLINE __attribute__((noinline))
|
||||
#else
|
||||
#define XRT_NO_INLINE
|
||||
#endif
|
||||
|
||||
|
||||
/*!
|
||||
* @define XRT_DEBUGBREAK()
|
||||
* To trigger a trap/break in the debugger.
|
||||
|
|
Loading…
Reference in a new issue