mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Move force inline defines to a separate header.
This commit is contained in:
parent
ff35f2960a
commit
a309e71fe1
@ -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
|
||||
|
12
common/TracyForceInline.hpp
Normal file
12
common/TracyForceInline.hpp
Normal 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
|
Loading…
Reference in New Issue
Block a user