aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-07 08:18:56 -0700
committerChris Robinson <[email protected]>2023-05-07 08:18:56 -0700
commit5a7f1640c801bc23d8b40ef49b49ac42aff1d74e (patch)
tree7d5423a3859b6581159d9ec927a13b6ed626dbac
parenta33770fb69436bb644d673a70ace8de9546c0fbe (diff)
Rename a function to clarify what it does
-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)