30a629ca21
* Tracy profiler integration. * Cleanup URHO3D_TRACY_PROFILING macro. * Fix comment of Tracy build option. * Decouple URHO3D_TRACY_PROFILING exclusively from URHO3D_PROFILING. * Comment explains URHO3D_TRACY_PROFILING * Update * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update CMakeLists.txt * Update * Update TracyCallstack.cpp * Update * Update CMakeLists.txt * Update TracyCallstack.cpp * Update TracyCallstack.cpp Co-authored-by: 1vanK <1vanK@users.noreply.github.com>
21 lines
465 B
C++
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
|