0
0
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:
rationalcoder 2017-08-19 22:08:27 -05:00
parent 12d26d6680
commit 75e4f35abe

View File

@ -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