Browse Source

config: wrap macro arguments to avoid warnings

Michele Caini 1 year ago
parent
commit
a39fd8548d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/entt/config/config.h

+ 1 - 1
src/entt/config/config.h

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