diff options
Diffstat (limited to 'include/zix/attributes.h')
-rw-r--r-- | include/zix/attributes.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/zix/attributes.h b/include/zix/attributes.h index 1fe1183..b076fa7 100644 --- a/include/zix/attributes.h +++ b/include/zix/attributes.h @@ -34,13 +34,15 @@ // GCC function attributes #ifdef __GNUC__ +# define ZIX_ALWAYS_INLINE_FUNC __attribute__((always_inline)) # define ZIX_PURE_FUNC __attribute__((pure)) # define ZIX_CONST_FUNC __attribute__((const)) # define ZIX_MALLOC_FUNC __attribute__((malloc)) #else -# define ZIX_PURE_FUNC ///< Only reads memory -# define ZIX_CONST_FUNC ///< Only reads its parameters -# define ZIX_MALLOC_FUNC ///< Allocates memory +# define ZIX_ALWAYS_INLINE_FUNC ///< Should absolutely always be inlined +# define ZIX_PURE_FUNC ///< Only reads memory +# define ZIX_CONST_FUNC ///< Only reads its parameters +# define ZIX_MALLOC_FUNC ///< Allocates memory #endif /// A pure function in the public API that only reads memory |