diff options
author | Chris Robinson <[email protected]> | 2021-01-22 05:50:27 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-01-22 05:50:27 -0800 |
commit | cff3693387c6d389f83ca25c7a150ae3395a434b (patch) | |
tree | 8a7f8803a1b36dc5ed7c18be92f80f98b8688a83 /alc/backends/opensl.cpp | |
parent | da59ad51057ce7343e3db4632e8679e1e537779d (diff) |
Use if constexpr when possible
Diffstat (limited to 'alc/backends/opensl.cpp')
-rw-r--r-- | alc/backends/opensl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alc/backends/opensl.cpp b/alc/backends/opensl.cpp index 926911f0..917e097f 100644 --- a/alc/backends/opensl.cpp +++ b/alc/backends/opensl.cpp @@ -37,6 +37,7 @@ #include "alu.h" #include "compat.h" #include "core/logging.h" +#include "opthelpers.h" #include "ringbuffer.h" #include "threads.h" @@ -104,7 +105,7 @@ constexpr SLuint32 GetTypeRepresentation(DevFmtType type) noexcept constexpr SLuint32 GetByteOrderEndianness() noexcept { - if /*constexpr*/(al::endian::native == al::endian::little) + if_constexpr(al::endian::native == al::endian::little) return SL_BYTEORDER_LITTLEENDIAN; return SL_BYTEORDER_BIGENDIAN; } |