a_module.cpp 686 B

1234567891011121314151617181920212223242526272829
  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 a_module_int_type() {
  12. entt::registry<> registry;
  13. (void)registry.type<double>();
  14. (void)registry.type<float>();
  15. return registry.type<int>();
  16. }
  17. LIB_EXPORT typename entt::registry<>::component_type a_module_char_type() {
  18. entt::registry<> registry;
  19. (void)registry.type<double>();
  20. (void)registry.type<float>();
  21. return registry.type<char>();
  22. }