diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 15:30:15 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-26 15:30:15 +0200 |
commit | 82ab34aa83463179339eb8382edf1c22cacdad61 (patch) | |
tree | 3d02aaa7458a4f00e38527c7cfe0f8559398b5d5 /editor/wall-editor.cpp | |
parent | c3bebd8c3263d67f3b66cab7437bc24f5ea724c8 (diff) |
use array_size instead of std::size/arraySize
Diffstat (limited to 'editor/wall-editor.cpp')
-rw-r--r-- | editor/wall-editor.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/wall-editor.cpp b/editor/wall-editor.cpp index 99d47643..57cdb8ed 100644 --- a/editor/wall-editor.cpp +++ b/editor/wall-editor.cpp @@ -1,4 +1,5 @@ #include "wall-editor.hpp" +#include "compat/array-size.hpp" #include "src/wall-defs.hpp" #include "src/wall-atlas.hpp" #include "src/world.hpp" @@ -18,7 +19,7 @@ constexpr inline rot_pair rot_map[] = { { rotation::N, Direction_::N }, { rotation::W, Direction_::W }, }; -static_assert(std::size(rot_map) == Direction_COUNT); +static_assert(array_size(rot_map) == Direction_COUNT); constexpr rotation dir_to_rot(Direction_ D) { |