mirror of
https://github.com/slendidev/lunar.git
synced 2026-01-31 00:38:59 +02:00
20
subprojects/tracy/public/common/TracyForceInline.hpp
Normal file
20
subprojects/tracy/public/common/TracyForceInline.hpp
Normal file
@@ -0,0 +1,20 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user