Skip to content

Commit

Permalink
feat(DaedalusScript): add instance type getter
Browse files Browse the repository at this point in the history
  • Loading branch information
lmichaelis committed Nov 11, 2023
1 parent 9d7c3f7 commit 9caff1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/zenkit/DaedalusScript.hh
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9caff1b

Please sign in to comment.