aboutsummaryrefslogtreecommitdiffstats
path: root/al
diff options
context:
space:
mode:
Diffstat (limited to 'al')
-rw-r--r--al/debug.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/al/debug.cpp b/al/debug.cpp
index 77a9af05..71aadc85 100644
--- a/al/debug.cpp
+++ b/al/debug.cpp
@@ -27,12 +27,12 @@ namespace {
static_assert(DebugSeverityBase+DebugSeverityCount <= 32, "Too many debug bits");
template<typename T, T ...Vals>
-constexpr auto make_array(std::integer_sequence<T, Vals...>)
+constexpr auto make_array_sequence(std::integer_sequence<T, Vals...>)
{ return std::array<T,sizeof...(Vals)>{Vals...}; }
template<typename T, size_t N>
-constexpr auto make_array()
-{ return make_array(std::make_integer_sequence<T,N>{}); }
+constexpr auto make_array_sequence()
+{ return make_array_sequence(std::make_integer_sequence<T,N>{}); }
constexpr std::optional<DebugSource> GetDebugSource(ALenum source) noexcept
@@ -310,7 +310,7 @@ FORCE_ALIGN void AL_APIENTRY alDebugMessageControlEXT(ALenum source, ALenum type
return context->setError(AL_INVALID_ENUM, "Invalid debug enable %d", enable);
static constexpr size_t ElemCount{DebugSourceCount + DebugTypeCount + DebugSeverityCount};
- static constexpr auto Values = make_array<uint,ElemCount>();
+ static constexpr auto Values = make_array_sequence<uint,ElemCount>();
al::span<const uint> srcIndices{al::span{Values}.subspan<DebugSourceBase,DebugSourceCount>()};
if(source != AL_DONT_CARE_EXT)