Michele Caini 6 лет назад
Родитель
Сommit
4404601fa3
4 измененных файлов с 5 добавлено и 15 удалено
  1. 0 5
      test/lib/a_module.cpp
  2. 2 7
      test/lib/another_module.cpp
  3. 0 3
      test/lib/lib.cpp
  4. 3 0
      test/lib/types.h

+ 0 - 5
test/lib/a_module.cpp

@@ -13,11 +13,6 @@
 #endif
 #endif
 
-ENTT_NAMED_TYPE(int)
-ENTT_NAMED_TYPE(char)
-ENTT_NAMED_TYPE(double)
-ENTT_NAMED_TYPE(float)
-
 LIB_EXPORT typename entt::component a_module_int_type() {
     entt::registry registry;
 

+ 2 - 7
test/lib/another_module.cpp

@@ -13,17 +13,12 @@
 #endif
 #endif
 
-ENTT_NAMED_TYPE(int)
-ENTT_NAMED_TYPE(char)
-ENTT_NAMED_TYPE(double)
-ENTT_NAMED_TYPE(float)
-
 LIB_EXPORT typename entt::component another_module_int_type() {
     entt::registry registry;
 
     (void)registry.type<char>();
-    (void)registry.type<const int>();
     (void)registry.type<double>();
+    (void)registry.type<const int>();
     (void)registry.type<const char>();
     (void)registry.type<float>();
 
@@ -34,8 +29,8 @@ LIB_EXPORT typename entt::component another_module_char_type() {
     entt::registry registry;
 
     (void)registry.type<int>();
-    (void)registry.type<const char>();
     (void)registry.type<float>();
+    (void)registry.type<const char>();
     (void)registry.type<const int>();
     (void)registry.type<double>();
 

+ 0 - 3
test/lib/lib.cpp

@@ -26,9 +26,6 @@ struct listener {
     int value;
 };
 
-ENTT_NAMED_TYPE(int)
-ENTT_NAMED_TYPE(char)
-
 TEST(Lib, Types) {
     entt::registry registry;
 

+ 3 - 0
test/lib/types.h

@@ -20,3 +20,6 @@ ENTT_NAMED_STRUCT(an_event, {
 })
 
 ENTT_NAMED_STRUCT(another_event, {})
+
+ENTT_NAMED_TYPE(int)
+ENTT_NAMED_TYPE(char)