From 25857b8aa781391ea0a1ce64bcf73a63304fd696 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Mon, 15 Apr 2024 01:05:08 +0200 Subject: [PATCH] also define name for message comps --- solanaceae/tox_messages/components_id.inl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/solanaceae/tox_messages/components_id.inl b/solanaceae/tox_messages/components_id.inl index fc12848..bb0174f 100644 --- a/solanaceae/tox_messages/components_id.inl +++ b/solanaceae/tox_messages/components_id.inl @@ -6,8 +6,12 @@ #define DEFINE_COMP_ID(x) \ template<> \ constexpr entt::id_type entt::type_hash::value() noexcept { \ - using namespace entt::literals; \ - return #x##_hs; \ + using namespace entt::literals; \ + return #x##_hs; \ +} \ +template<> \ +constexpr std::string_view entt::type_name::value() noexcept { \ + return #x; \ } // cross compile(r) stable ids