diff options
author | Chris Robinson <[email protected]> | 2023-09-17 00:09:18 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-09-17 00:09:18 -0700 |
commit | c4ce0ec4411f21e0a2f8485588717c59f0b9970c (patch) | |
tree | d27d078ef3f2298d6bfc92f90314c881ef4edc88 /common/opthelpers.h | |
parent | 2e293ee7cbc6f0dbd069ba7c678d20c1af16872f (diff) |
Rename noinline to NOINLINE
To avoid clashes with compilers that use it as a keyword already
Diffstat (limited to 'common/opthelpers.h')
-rw-r--r-- | common/opthelpers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/opthelpers.h b/common/opthelpers.h index cc606b9e..dc43ccdb 100644 --- a/common/opthelpers.h +++ b/common/opthelpers.h @@ -19,13 +19,13 @@ #ifdef __GNUC__ #define force_inline [[gnu::always_inline]] inline -#define noinline [[gnu::noinline]] +#define NOINLINE [[gnu::noinline]] #elif defined(_MSC_VER) #define force_inline __forceinline -#define noinline __declspec(noinline) +#define NOINLINE __declspec(noinline) #else #define force_inline inline -#define noinline +#define NOINLINE #endif /* Unlike the likely attribute, ASSUME requires the condition to be true or |