diff --git a/client/concurrentqueue.h b/client/concurrentqueue.h index 65c1c73c..ba9eafec 100644 --- a/client/concurrentqueue.h +++ b/client/concurrentqueue.h @@ -30,15 +30,8 @@ #pragma once -#if defined(__GNUC__) -# define tracy_force_inline __attribute__((always_inline)) -#elif defined(_MSC_VER) -# define tracy_force_inline __forceinline -#else -# define tracy_force_inline inline -#endif - #include "../common/TracyAlloc.hpp" +#include "../common/TracyForceInline.hpp" #if defined(__GNUC__) // Disable -Wconversion warnings (spuriously triggered when Traits::size_t and diff --git a/common/TracyForceInline.hpp b/common/TracyForceInline.hpp new file mode 100644 index 00000000..ed25d30c --- /dev/null +++ b/common/TracyForceInline.hpp @@ -0,0 +1,12 @@ +#ifndef __TRACYFORCEINLINE_HPP__ +#define __TRACYFORCEINLINE_HPP__ + +#if defined(__GNUC__) +# define tracy_force_inline __attribute__((always_inline)) +#elif defined(_MSC_VER) +# define tracy_force_inline __forceinline +#else +# define tracy_force_inline inline +#endif + +#endif