Move force inline defines to a separate header.

This commit is contained in:
Bartosz Taudul 2017-11-18 21:50:26 +01:00
parent ff35f2960a
commit a309e71fe1
2 changed files with 13 additions and 8 deletions

View File

@ -30,15 +30,8 @@
#pragma once #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/TracyAlloc.hpp"
#include "../common/TracyForceInline.hpp"
#if defined(__GNUC__) #if defined(__GNUC__)
// Disable -Wconversion warnings (spuriously triggered when Traits::size_t and // Disable -Wconversion warnings (spuriously triggered when Traits::size_t and

View File

@ -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