Browse Source

workaround for msvc that seems not to appreciate much macros

Michele Caini 7 years ago
parent
commit
ff93f2220a
1 changed files with 7 additions and 4 deletions
  1. 7 4
      test/lib/component.h

+ 7 - 4
test/lib/component.h

@@ -1,11 +1,14 @@
 #include <entt/core/type_traits.hpp>
 
-ENTT_SHARED_STRUCT(position, {
+struct position {
     int x;
     int y;
-})
+};
 
-ENTT_SHARED_STRUCT(velocity, {
+struct velocity {
     int dx;
     int dy;
-})
+};
+
+ENTT_SHARED_TYPE(position)
+ENTT_SHARED_TYPE(velocity)