Răsfoiți Sursa

tests: minor changes

Michele Caini 6 ani în urmă
părinte
comite
fadb8f695e

+ 1 - 1
test/lib/dispatcher/lib.cpp

@@ -6,6 +6,6 @@
 
 template struct entt::family<event, entt::dispatcher::dispatcher_event_family>;
 
-ENTT_EXPORT void trigger(int value, entt::dispatcher &dispatcher) {
+ENTT_API void trigger(int value, entt::dispatcher &dispatcher) {
     dispatcher.trigger<message>(value);
 }

+ 1 - 1
test/lib/emitter/lib.cpp

@@ -6,6 +6,6 @@
 
 template struct entt::family<event, test_emitter::emitter_event_family>;
 
-ENTT_EXPORT void emit(int value, test_emitter &emitter) {
+ENTT_API void emit(int value, test_emitter &emitter) {
     emitter.publish<message>(value);
 }

+ 3 - 3
test/lib/meta/lib.cpp

@@ -10,7 +10,7 @@ position create_position(int x, int y) {
     return position{x, y};
 }
 
-ENTT_EXPORT void set_up() {
+ENTT_API void set_up() {
     entt::meta<position>()
             .type("position"_hs)
             .ctor<&create_position>()
@@ -23,11 +23,11 @@ ENTT_EXPORT void set_up() {
             .data<&velocity::dy>("dy"_hs);
 }
 
-ENTT_EXPORT void tear_down() {
+ENTT_API void tear_down() {
     entt::meta<position>().reset();
     entt::meta<velocity>().reset();
 }
 
-ENTT_EXPORT entt::meta_any wrap_int(int value) {
+ENTT_API entt::meta_any wrap_int(int value) {
     return value;
 }

+ 3 - 3
test/lib/meta/main.cpp

@@ -6,9 +6,9 @@
 #include <entt/meta/meta.hpp>
 #include "types.h"
 
-ENTT_IMPORT void set_up();
-ENTT_IMPORT void tear_down();
-ENTT_IMPORT entt::meta_any wrap_int(int);
+ENTT_API void set_up();
+ENTT_API void tear_down();
+ENTT_API entt::meta_any wrap_int(int);
 
 TEST(Lib, Meta) {
     ASSERT_FALSE(entt::resolve("position"_hs));