• R/O
  • SSH
  • HTTPS

eirrepo: Commit


Commit MetaInfo

Revision447 (tree)
Time2022-02-17 08:05:18
Authorquiret

Log Message

- made DynamicTypeSystem::FindTypeInfoByRTTI public because it could be useful as feedback for runtimes instead of allocating other structures

Change Summary

Incremental Difference

--- common/sdk/DynamicTypeSystem.h (revision 446)
+++ common/sdk/DynamicTypeSystem.h (revision 447)
@@ -1659,6 +1659,9 @@
16591659 return (void*)SCALE_DOWN( (size_t)objMem, align_alloc );
16601660 }
16611661
1662+public:
1663+ // Returns any type info that is associated with this DTS by C++ type. If no
1664+ // associated type is found then it returns nullptr.
16621665 template <typename langType>
16631666 inline typeInfoBase* FindTypeInfoByRTTI( void ) noexcept
16641667 {
@@ -1672,7 +1675,6 @@
16721675 return AVL_GETITEM( typeInfoBase, findNode, lang_type_node );
16731676 }
16741677
1675-public:
16761678 // Returns the runtime object that will be allocated at objMem.
16771679 // The returned pointer is not necessaringly equal to objMem itself if alignment is skewed.
16781680 // THREAD-SAFE, because the typeInterface is THREAD-SAFE and plugin construction is THREAD-SAFE.
Show on old repository browser