mirror of
https://github.com/yse/easy_profiler.git
synced 2025-01-14 00:27:55 +08:00
Added EASY_FORCE_INLINE
This commit is contained in:
parent
12d26d6680
commit
75e4f35abe
@ -82,6 +82,8 @@
|
||||
VarName = VarInitializer
|
||||
# endif
|
||||
|
||||
#define EASY_FORCE_INLINE __forceinline
|
||||
|
||||
#elif defined (__clang__)
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// Clang Compiler
|
||||
@ -102,6 +104,8 @@
|
||||
# define EASY_FINAL
|
||||
# endif
|
||||
|
||||
#define EASY_FORCE_INLINE inline __attribute__((always_inline))
|
||||
|
||||
#elif defined(__GNUC__)
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
// GNU Compiler
|
||||
@ -124,6 +128,8 @@
|
||||
# define EASY_FINAL
|
||||
# endif
|
||||
|
||||
#define EASY_FORCE_INLINE inline __attribute__((always_inline))
|
||||
|
||||
#endif
|
||||
// END // TODO: Add other compilers support
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
@ -147,6 +153,10 @@
|
||||
# define EASY_FINAL final
|
||||
#endif
|
||||
|
||||
#ifndef EASY_FORCE_INLINE
|
||||
# define EASY_FORCE_INLINE inline
|
||||
#endif
|
||||
|
||||
#ifndef PROFILER_API
|
||||
# define PROFILER_API
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user