debug: print assertion message upon failure (#1164)

This commit is contained in:
Chris Thrasher
2024-08-19 15:02:54 +01:00
committed by GitHub
parent 3d89f04e95
commit 80ee5e43c2

View File

@@ -44,7 +44,7 @@
# define ENTT_ASSERT(condition, msg) (void(0))
#elif !defined ENTT_ASSERT
# include <cassert>
# define ENTT_ASSERT(condition, msg) assert(condition)
# define ENTT_ASSERT(condition, msg) assert(condition && msg)
#endif
#ifdef ENTT_DISABLE_ASSERT