xrt: Add XRT_NO_INLINE define

This commit is contained in:
Jakob Bornecrantz 2019-08-27 08:29:17 +01:00
parent 1e93ba2461
commit f5a93699cb

View file

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