another_module.cpp 917 B

1234567891011121314151617181920212223242526272829303132333435
  1. #include <entt/entity/registry.hpp>
  2. #ifndef LIB_EXPORT
  3. #if defined _WIN32 || defined __CYGWIN__
  4. #define LIB_EXPORT __declspec(dllexport)
  5. #elif defined __GNUC__
  6. #define LIB_EXPORT __attribute__((visibility("default")))
  7. #else
  8. #define LIB_EXPORT
  9. #endif
  10. #endif
  11. LIB_EXPORT typename entt::registry<>::component_type another_module_int_type() {
  12. entt::registry<> registry;
  13. (void)registry.type<char>();
  14. (void)registry.type<const int>();
  15. (void)registry.type<double>();
  16. (void)registry.type<const char>();
  17. (void)registry.type<float>();
  18. return registry.type<int>();
  19. }
  20. LIB_EXPORT typename entt::registry<>::component_type another_module_char_type() {
  21. entt::registry<> registry;
  22. (void)registry.type<int>();
  23. (void)registry.type<const char>();
  24. (void)registry.type<float>();
  25. (void)registry.type<const int>();
  26. (void)registry.type<double>();
  27. return registry.type<char>();
  28. }