aboutsummaryrefslogtreecommitdiffstats
path: root/al/eax/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'al/eax/utils.h')
-rw-r--r--al/eax/utils.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/al/eax/utils.h b/al/eax/utils.h
index e5581bd6..8e0f975f 100644
--- a/al/eax/utils.h
+++ b/al/eax/utils.h
@@ -7,6 +7,8 @@
#include <string_view>
#include <type_traits>
+#include "opthelpers.h"
+
using EaxDirtyFlags = unsigned int;
struct EaxAlLowPassParam {
@@ -17,13 +19,10 @@ struct EaxAlLowPassParam {
void eax_log_exception(std::string_view message) noexcept;
template<typename TException, typename TValue>
-void eax_validate_range(
- const char* value_name,
- const TValue& value,
- const TValue& min_value,
+void eax_validate_range(std::string_view value_name, const TValue& value, const TValue& min_value,
const TValue& max_value)
{
- if (value >= min_value && value <= max_value)
+ if(value >= min_value && value <= max_value) LIKELY
return;
const auto message =