diff options
author | Mikael Hermansson <mikael@hermansson.io> | 2024-11-07 17:53:02 +0100 |
---|---|---|
committer | Mikael Hermansson <mikael@hermansson.io> | 2024-11-08 14:37:43 +0100 |
commit | 9b7c14718b0b37b36a3a2ffdfdbffbb386b35283 (patch) | |
tree | 0ce8657d0d774b932eb0a05252f6ba50e7d1e341 | |
parent | 36e6207bb48fafd43b98a458d0c461ad982b4e68 (diff) | |
download | redot-engine-9b7c14718b0b37b36a3a2ffdfdbffbb386b35283.tar.gz |
Add `Ref` and `HashSet` to `godot.natvis`
-rw-r--r-- | platform/windows/godot.natvis | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/platform/windows/godot.natvis b/platform/windows/godot.natvis index 14536fa130..fc34ad3cb3 100644 --- a/platform/windows/godot.natvis +++ b/platform/windows/godot.natvis @@ -1,5 +1,15 @@ <?xml version="1.0" encoding="utf-8"?> <AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010"> + <Type Name="Ref<*>"> + <SmartPointer Usage="Minimal">reference</SmartPointer> + <DisplayString Condition="!reference">[empty]</DisplayString> + <DisplayString Condition="!!reference">{*reference}</DisplayString> + <Expand> + <Item Condition="!!reference" Name="[ptr]">reference</Item> + <Item Condition="!!reference" Name="[refcount]">reference->refcount.count.value</Item> + </Expand> + </Type> + <Type Name="Vector<*>"> <Expand> <Item Name="[size]">_cowdata._ptr ? (((const unsigned long long *)(_cowdata._ptr))[-1]) : 0</Item> @@ -91,6 +101,16 @@ <StringView Condition="_data && !_data->cname">_data->name,s32b</StringView> </Type> + <Type Name="HashSet<*,*,*>"> + <Expand> + <Item Name="[size]">num_elements</Item> + <ArrayItems> + <Size>num_elements</Size> + <ValuePointer>($T1 *) keys._cowdata._ptr</ValuePointer> + </ArrayItems> + </Expand> + </Type> + <Type Name="HashMapElement<*,*>"> <DisplayString>{{Key = {($T1 *) &data.key} Value = {($T2 *) &data.value}}}</DisplayString> <Expand> |