From 71bd6fe8a02ee5b1c165bbe5e369462c46477fe7 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 7 Nov 2023 20:55:00 +0100 Subject: a --- test/bitmask.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/bitmask.cpp b/test/bitmask.cpp index a9552014..ef8f3b1c 100644 --- a/test/bitmask.cpp +++ b/test/bitmask.cpp @@ -2,13 +2,11 @@ #include "compat/assert.hpp" #include "src/anim-atlas.hpp" #include "loader/loader.hpp" -#include #include #include #include #include #include -#include //#define DO_GENERATE @@ -16,11 +14,13 @@ namespace floormat { namespace { -constexpr size_t data_nbytes = 128; const unsigned char data_door_close[] = { #include "bitmask.embed.inc" }; +constexpr auto data_nbytes = arraySize(data_door_close); +static_assert(data_nbytes == 128); + void bitmask_test() { auto img = loader.texture(loader.SCENERY_PATH, "door-close"_s); -- cgit v1.2.3