mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
21 lines
458 B
C++
21 lines
458 B
C++
#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
|
|
|
|
#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
|