Kaynağa Gözat

config: ENTT_DISABLE_ETO -> ENTT_NO_ETO

Michele Caini 6 yıl önce
ebeveyn
işleme
8680c0ba39
2 değiştirilmiş dosya ile 3 ekleme ve 3 silme
  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
 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
 

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

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