From 5a7f1640c801bc23d8b40ef49b49ac42aff1d74e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 7 May 2023 08:18:56 -0700 Subject: Rename a function to clarify what it does --- al/debug.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'al/debug.cpp') 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 -constexpr auto make_array(std::integer_sequence) +constexpr auto make_array_sequence(std::integer_sequence) { return std::array{Vals...}; } template -constexpr auto make_array() -{ return make_array(std::make_integer_sequence{}); } +constexpr auto make_array_sequence() +{ return make_array_sequence(std::make_integer_sequence{}); } constexpr std::optional 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(); + static constexpr auto Values = make_array_sequence(); al::span srcIndices{al::span{Values}.subspan()}; if(source != AL_DONT_CARE_EXT) -- cgit v1.2.3