From 4213fa8a986ccfdf03783638862a9aacf3ea8601 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Oct 2022 23:25:32 +0200 Subject: rename macros --- src/local-coords.hpp | 4 ++-- src/tile-atlas.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/local-coords.hpp b/src/local-coords.hpp index f5615f9a..1e7fbbed 100644 --- a/src/local-coords.hpp +++ b/src/local-coords.hpp @@ -20,7 +20,7 @@ constexpr local_coords::local_coords(std::size_t index) noexcept : x{(std::uint8_t)(index % TILE_MAX_DIM)}, y{(std::uint8_t)(index / TILE_MAX_DIM)} { - ASSERT(index < TILE_COUNT); + fm_assert(index < TILE_COUNT); } template @@ -28,7 +28,7 @@ requires (sizeof(T) <= sizeof(std::size_t)) constexpr local_coords::local_coords(T x, T y) noexcept : x{(std::uint8_t)x}, y{(std::uint8_t)y} { - ASSERT(static_cast(x) < TILE_MAX_DIM && static_cast(y) < TILE_MAX_DIM); + fm_assert(static_cast(x) < TILE_MAX_DIM && static_cast(y) < TILE_MAX_DIM); } } // namespace floormat diff --git a/src/tile-atlas.cpp b/src/tile-atlas.cpp index 6688536f..d08b4798 100644 --- a/src/tile-atlas.cpp +++ b/src/tile-atlas.cpp @@ -25,7 +25,7 @@ tile_atlas::tile_atlas(Containers::StringView name, const ImageView2D& image, Ve std::array tile_atlas::texcoords_for_id(std::size_t i) const { - ASSERT(i < (size_/dims_).product()); + fm_assert(i < (size_/dims_).product()); return texcoords_[i]; } -- cgit v1.2.3