From cac1b87b4441fc6882723be4c0726eebf75a62cd Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 15 May 2019 23:23:06 +0200 Subject: [PATCH] assert -> ENTT_ASSERT --- src/entt/entity/registry.hpp | 2 +- src/entt/meta/meta.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index bcc9775b5..2bd6f58ef 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -121,7 +121,7 @@ class basic_registry { template decltype(auto) replace(basic_registry ®istry, const Entity entt, Args &&... args) { if constexpr(std::is_empty_v) { - assert((storage::has(entt))); + ENTT_ASSERT((storage::has(entt))); on_replace.publish(registry, entt, Component{}); return Component{std::forward(args)...}; } else { diff --git a/src/entt/meta/meta.hpp b/src/entt/meta/meta.hpp index dbb3fc2ab..ddaebcd01 100644 --- a/src/entt/meta/meta.hpp +++ b/src/entt/meta/meta.hpp @@ -1251,7 +1251,7 @@ public: */ template inline bool set(meta_handle handle, std::size_t index, Type &&value) const { - assert(index < node->type()->extent); + ENTT_ASSERT(index < node->type()->extent); return node->set(handle, index, std::forward(value)); } @@ -1279,7 +1279,7 @@ public: * @return A meta any containing the value of the underlying element. */ inline meta_any get(meta_handle handle, std::size_t index) const ENTT_NOEXCEPT { - assert(index < node->type()->extent); + ENTT_ASSERT(index < node->type()->extent); return node->get(handle, index); }