TracyForceInline.hpp (465B)
1 #ifndef __TRACYFORCEINLINE_HPP__ 2 #define __TRACYFORCEINLINE_HPP__ 3 4 #if defined(__GNUC__) 5 # define tracy_force_inline __attribute__((always_inline)) inline 6 #elif defined(_MSC_VER) 7 # define tracy_force_inline __forceinline 8 #else 9 # define tracy_force_inline inline 10 #endif 11 12 #if defined(__GNUC__) 13 # define tracy_no_inline __attribute__((noinline)) 14 #elif defined(_MSC_VER) 15 # define tracy_no_inline __declspec(noinline) 16 #else 17 # define tracy_no_inline 18 #endif 19 20 #endif