summaryrefslogtreecommitdiffhomepage
path: root/src/anim-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-05-26 15:30:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2024-05-26 15:30:15 +0200
commit82ab34aa83463179339eb8382edf1c22cacdad61 (patch)
tree3d02aaa7458a4f00e38527c7cfe0f8559398b5d5 /src/anim-atlas.cpp
parentc3bebd8c3263d67f3b66cab7437bc24f5ea724c8 (diff)
use array_size instead of std::size/arraySize
Diffstat (limited to 'src/anim-atlas.cpp')
-rw-r--r--src/anim-atlas.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/anim-atlas.cpp b/src/anim-atlas.cpp
index 6509a494..cff16798 100644
--- a/src/anim-atlas.cpp
+++ b/src/anim-atlas.cpp
@@ -1,6 +1,7 @@
#include "anim-atlas.hpp"
#include "shaders/shader.hpp"
#include "compat/assert.hpp"
+#include "compat/array-size.hpp"
#include "compat/exception.hpp"
#include <Corrade/Containers/BitArrayView.h>
#include <Corrade/Containers/StridedArrayView.h>
@@ -12,7 +13,7 @@ namespace floormat {
static constexpr const char name_array[][3] = { "n", "ne", "e", "se", "s", "sw", "w", "nw", };
static constexpr inline auto rot_count = size_t(rotation_COUNT);
-static_assert(std::size(name_array) == rot_count);
+static_assert(array_size(name_array) == rot_count);
static_assert(rot_count == 8);
uint8_t anim_atlas::rotation_to_index(StringView name)