aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--al/source.cpp4
-rw-r--r--common/opthelpers.h6
2 files changed, 5 insertions, 5 deletions
diff --git a/al/source.cpp b/al/source.cpp
index d5ac8f45..9289d25c 100644
--- a/al/source.cpp
+++ b/al/source.cpp
@@ -1423,7 +1423,7 @@ auto GetCheckers(ALCcontext *const Context, const SourceProp prop, const al::spa
}
template<typename T>
-noinline void SetProperty(ALsource *const Source, ALCcontext *const Context, const SourceProp prop,
+NOINLINE void SetProperty(ALsource *const Source, ALCcontext *const Context, const SourceProp prop,
const al::span<const T> values) try
{
auto&& [CheckSize, CheckValue] = GetCheckers(Context, prop, values);
@@ -2008,7 +2008,7 @@ auto GetSizeChecker(ALCcontext *const Context, const SourceProp prop, const al::
}
template<typename T>
-[[nodiscard]] noinline
+[[nodiscard]] NOINLINE
bool GetProperty(ALsource *const Source, ALCcontext *const Context, const SourceProp prop,
const al::span<T> values) try
{
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