Commit f5a93699 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz
Browse files

xrt: Add XRT_NO_INLINE define

parent 1e93ba24
...@@ -43,6 +43,17 @@ ...@@ -43,6 +43,17 @@
#define XRT_MAYBE_UNUSED #define XRT_MAYBE_UNUSED
#endif #endif
/*
* To stop inlining.
*/
#if defined(__GNUC__)
#define XRT_NO_INLINE __attribute__((noinline))
#else
#define XRT_NO_INLINE
#endif
/*! /*!
* @define XRT_DEBUGBREAK() * @define XRT_DEBUGBREAK()
* To trigger a trap/break in the debugger. * To trigger a trap/break in the debugger.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment