summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-20 23:25:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-20 23:25:32 +0200
commit4213fa8a986ccfdf03783638862a9aacf3ea8601 (patch)
treee1d78e3dcc74ce6c2605ff31e035fb7e4ad36453 /src
parentd22abc50862f7243228c93fd2fd3878b37821487 (diff)
rename macros
Diffstat (limited to 'src')
-rw-r--r--src/local-coords.hpp4
-rw-r--r--src/tile-atlas.cpp2
2 files changed, 3 insertions, 3 deletions
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<std::integral T>
@@ -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<std::size_t>(x) < TILE_MAX_DIM && static_cast<std::size_t>(y) < TILE_MAX_DIM);
+ fm_assert(static_cast<std::size_t>(x) < TILE_MAX_DIM && static_cast<std::size_t>(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<Vector2, 4> tile_atlas::texcoords_for_id(std::size_t i) const
{
- ASSERT(i < (size_/dims_).product());
+ fm_assert(i < (size_/dims_).product());
return texcoords_[i];
}