2017-11-18 20:50:26 +00:00
|
|
|
#ifndef __TRACYFORCEINLINE_HPP__
|
|
|
|
#define __TRACYFORCEINLINE_HPP__
|
|
|
|
|
|
|
|
#if defined(__GNUC__)
|
2018-04-21 17:22:27 +00:00
|
|
|
# define tracy_force_inline __attribute__((always_inline)) inline
|
2017-11-18 20:50:26 +00:00
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
# define tracy_force_inline __forceinline
|
|
|
|
#else
|
|
|
|
# define tracy_force_inline inline
|
|
|
|
#endif
|
|
|
|
|
2017-11-19 16:15:09 +00:00
|
|
|
#if defined(__GNUC__)
|
|
|
|
# define tracy_no_inline __attribute__((noinline))
|
|
|
|
#elif defined(_MSC_VER)
|
|
|
|
# define tracy_no_inline __declspec(noinline)
|
|
|
|
#else
|
|
|
|
# define tracy_no_inline
|
|
|
|
#endif
|
|
|
|
|
2017-11-18 20:50:26 +00:00
|
|
|
#endif
|