mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 12:39:56 +00:00
MSVC: Add visualisations for iterators and pointers
This commit is contained in:
parent
8352986b88
commit
f6c37b09ea
@ -67,6 +67,13 @@
|
||||
<DisplayString>{_value}</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="Common::HashMap<*,*,*,*>::IteratorImpl<*>">
|
||||
<DisplayString>{_hashmap->_storage[_idx],na}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[ptr]">_hashmap->_storage[_idx]</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="Common::List<*>">
|
||||
<DisplayString Condition="&_anchor == _anchor._next">{{ empty }}</DisplayString>
|
||||
<DisplayString Condition="&_anchor != _anchor._next">{{ non-empty }}</DisplayString>
|
||||
@ -83,6 +90,18 @@
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="Common::ListInternal::Node<*>">
|
||||
<DisplayString>{_data}</DisplayString>
|
||||
</Type>
|
||||
|
||||
<Type Name="Common::ListInternal::Iterator<*>">
|
||||
<AlternativeType Name="Common::ListInternal::ConstIterator<*>" />
|
||||
<DisplayString>{((Common::ListInternal::Node<$T1>*)_node)->_data}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="[ptr]">((Common::ListInternal::Node<$T1>*)_node)->_data</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="Common::String">
|
||||
<DisplayString>{_str,na}</DisplayString>
|
||||
<StringView>_str,na</StringView>
|
||||
@ -96,4 +115,13 @@
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
</Type>
|
||||
|
||||
<Type Name="Common::SharedPtr<*>">
|
||||
<DisplayString Condition="_pointer == 0">nullptr</DisplayString>
|
||||
<DisplayString Condition="_pointer != 0">{*_pointer}</DisplayString>
|
||||
<Expand>
|
||||
<Item Condition="_pointer != 0" Name="[ptr]">_pointer</Item>
|
||||
<Item Condition="_refCount != 0" Name="[refCount]">*_refCount</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
</AutoVisualizer>
|
||||
|
Loading…
Reference in New Issue
Block a user