From 9caff1b387014533ed008b96ee92d4f317f27b99 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Sat, 11 Nov 2023 11:39:50 +0100 Subject: [PATCH] feat(DaedalusScript): add instance type getter --- include/zenkit/DaedalusScript.hh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/zenkit/DaedalusScript.hh b/include/zenkit/DaedalusScript.hh index 2d97dd64..f536557c 100644 --- a/include/zenkit/DaedalusScript.hh +++ b/include/zenkit/DaedalusScript.hh @@ -283,6 +283,10 @@ namespace zenkit { return _m_symbol_index; } + [[nodiscard]] std::type_info const* instance_type() const { + return _m_type; + } + /// \brief A pointer which may be used by the user of this API void* user_ptr = nullptr;