You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tracy/public/common/TracyForceInline.hpp

21 lines
465 B
C++

#ifndef __TRACYFORCEINLINE_HPP__
#define __TRACYFORCEINLINE_HPP__
#if defined(__GNUC__)
# define tracy_force_inline __attribute__((always_inline)) inline
#elif defined(_MSC_VER)
# define tracy_force_inline __forceinline
#else
# define tracy_force_inline inline
#endif
#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
#endif