#pragma once #include "./os_comps.hpp" #include // TODO: move more central #define DEFINE_COMP_ID(x) \ template<> \ constexpr entt::id_type entt::type_hash::value() noexcept { \ using namespace entt::literals; \ return #x##_hs; \ } \ template<> \ constexpr std::string_view entt::type_name::value() noexcept { \ return #x; \ } // cross compile(r) stable ids DEFINE_COMP_ID(ObjComp::F::RemoteHaveBitset) DEFINE_COMP_ID(ObjComp::Ephemeral::File::TransferStatsSeparated) #undef DEFINE_COMP_ID