Ver Fonte

config: wrap macro arguments to avoid warnings

Michele Caini há 1 ano atrás
pai
commit
a39fd8548d
1 ficheiros alterados com 1 adições e 1 exclusões
  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