Ver Fonte

config: ENTT_DISABLE_ETO -> ENTT_NO_ETO

Michele Caini há 6 anos atrás
pai
commit
8680c0ba39
2 ficheiros alterados com 3 adições e 3 exclusões
  1. 2 2
      docs/md/entity.md
  2. 1 1
      src/entt/config/config.h

+ 2 - 2
docs/md/entity.md

@@ -1699,8 +1699,8 @@ it is assigned to.
 
 
 More in general, none of the features offered by the library is affected, but
 More in general, none of the features offered by the library is affected, but
 for the ones that require to return actual instances.<br/>
 for the ones that require to return actual instances.<br/>
-This optimization can be disabled by defining the `ENTT_DISABLE_ETO` macro. In
-this case, empty types will be treated like all other types, no matter what.
+This optimization can be disabled by defining the `ENTT_NO_ETO` macro. In this
+case, empty types will be treated like all other types, no matter what.
 
 
 # Multithreading
 # Multithreading
 
 

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

@@ -42,7 +42,7 @@
 #endif
 #endif
 
 
 
 
-#ifndef ENTT_DISABLE_ETO
+#ifndef ENTT_NO_ETO
 #   include <type_traits>
 #   include <type_traits>
 #   define ENTT_IS_EMPTY(Type) std::is_empty_v<Type>
 #   define ENTT_IS_EMPTY(Type) std::is_empty_v<Type>
 #else
 #else