From 0557a45481b8dd73a9ccd23c1d130c9deb0d9011 Mon Sep 17 00:00:00 2001 From: Robear Selwans Date: Wed, 5 Jan 2022 03:18:01 +0200 Subject: [PATCH] Added EV_FORCEINLINE Signed-off-by: Robear Selwans --- ev_macros.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ev_macros.h b/ev_macros.h index 14cdf6a..1c5a8bb 100644 --- a/ev_macros.h +++ b/ev_macros.h @@ -41,10 +41,12 @@ # define EV_EXPORT __declspec(dllexport) # define EV_IMPORT __declspec(dllimport) # define EV_UNUSED +# define EV_FORCEINLINE __forceinline #elif ( EV_CC_GCC || EV_CC_CLANG ) # define EV_EXPORT __attribute__((visibility("default"))) # define EV_IMPORT # define EV_UNUSED __attribute__((unused)) +# define EV_FORCEINLINE inline __attribute__((always_inline)) #else # error "Unknown Compiler" #endif