Changeset 4c58668 in mainline
- Timestamp:
- 2018-07-05T21:41:18Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 973a268
- Parents:
- ad403590
- git-author:
- Jaroslav Jindrak <dzejrou@…> (2017-11-23 23:23:49)
- git-committer:
- Dzejrou <dzejrou@…> (2018-07-05 21:41:18)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/cpp/src/internal/runtime.cpp
rad403590 r4c58668 36 36 * call of a pure virtual function cannot be made. 37 37 */ 38 // TODO: terminate in this 38 39 extern "C" void __cxa_pure_call() 39 40 { /* DUMMY BODY */ } … … 69 70 { /* DUMMY BODY */ } 70 71 72 /** 73 * This structure represents part of the vtable segment 74 * that contains data related to dynamic_cast. 75 */ 76 struct vtable 77 { 78 // Unimportant to us. 79 80 std::ptrdiff_t offset_to_top; 81 std::type_info* tinfo; 82 83 // Actual vtable. 84 }; 71 85 extern "C" void* __dynamic_cast(const void* sub, const __class_type_info* src, 72 86 const __class_type_info* dst, std::ptrdiff_t offset) 73 87 { 74 88 // TODO: implement 89 // NOTE: as far as I understand it, we get vtable prefix from sub, get the type_info 90 // ptr from that and then climb the inheritance hierarchy upwards till we either 91 // fint dst or fail and return nullptr 75 92 return nullptr; 76 93 }
Note:
See TracChangeset
for help on using the changeset viewer.