Merge pull request #87848 from nikitalita/natvis-cowdata-fix
Fix `godot.natvis` after CowData 64-bit promotion
This commit is contained in:
commit
99db7204dc
1 changed files with 9 additions and 9 deletions
|
@ -2,9 +2,9 @@
|
||||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
<Type Name="Vector<*>">
|
<Type Name="Vector<*>">
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="[size]">_cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0</Item>
|
<Item Name="[size]">_cowdata._ptr ? (((const unsigned long long *)(_cowdata._ptr))[-1]) : 0</Item>
|
||||||
<ArrayItems>
|
<ArrayItems>
|
||||||
<Size>_cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0</Size>
|
<Size>_cowdata._ptr ? (((const unsigned long long *)(_cowdata._ptr))[-1]) : 0</Size>
|
||||||
<ValuePointer>($T1 *) _cowdata._ptr</ValuePointer>
|
<ValuePointer>($T1 *) _cowdata._ptr</ValuePointer>
|
||||||
</ArrayItems>
|
</ArrayItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
|
@ -12,9 +12,9 @@
|
||||||
|
|
||||||
<Type Name="Array">
|
<Type Name="Array">
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="[size]">_p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0</Item>
|
<Item Name="[size]">_p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Item>
|
||||||
<ArrayItems>
|
<ArrayItems>
|
||||||
<Size>_p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0</Size>
|
<Size>_p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Size>
|
||||||
<ValuePointer>(Variant *) _p->array._cowdata._ptr</ValuePointer>
|
<ValuePointer>(Variant *) _p->array._cowdata._ptr</ValuePointer>
|
||||||
</ArrayItems>
|
</ArrayItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
|
@ -22,9 +22,9 @@
|
||||||
|
|
||||||
<Type Name="TypedArray<*>">
|
<Type Name="TypedArray<*>">
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Name="[size]"> _p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0</Item>
|
<Item Name="[size]"> _p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Item>
|
||||||
<ArrayItems>
|
<ArrayItems>
|
||||||
<Size>_p->array._cowdata._ptr ? (((const unsigned int *)(_p->array._cowdata._ptr))[-1]) : 0</Size>
|
<Size>_p->array._cowdata._ptr ? (((const unsigned long long *)(_p->array._cowdata._ptr))[-1]) : 0</Size>
|
||||||
<ValuePointer >(Variant *) _p->array._cowdata._ptr</ValuePointer>
|
<ValuePointer >(Variant *) _p->array._cowdata._ptr</ValuePointer>
|
||||||
</ArrayItems>
|
</ArrayItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
<Type Name="Vector<StringName>" IncludeView="NodePathHelper">
|
<Type Name="Vector<StringName>" IncludeView="NodePathHelper">
|
||||||
<Expand>
|
<Expand>
|
||||||
<ArrayItems>
|
<ArrayItems>
|
||||||
<Size>_cowdata._ptr ? (((const unsigned int *)(_cowdata._ptr))[-1]) : 0</Size>
|
<Size>_cowdata._ptr ? (((const unsigned long long *)(_cowdata._ptr))[-1]) : 0</Size>
|
||||||
<ValuePointer>((StringName *)_cowdata._ptr),view(NodePathHelper)</ValuePointer>
|
<ValuePointer>((StringName *)_cowdata._ptr),view(NodePathHelper)</ValuePointer>
|
||||||
</ArrayItems>
|
</ArrayItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
|
@ -140,9 +140,9 @@
|
||||||
|
|
||||||
<Type Name="VMap<*,*>">
|
<Type Name="VMap<*,*>">
|
||||||
<Expand>
|
<Expand>
|
||||||
<Item Condition="_cowdata._ptr" Name="[size]">*(reinterpret_cast<int*>(_cowdata._ptr) - 1)</Item>
|
<Item Condition="_cowdata._ptr" Name="[size]">*(reinterpret_cast<long long*>(_cowdata._ptr) - 1)</Item>
|
||||||
<ArrayItems Condition="_cowdata._ptr">
|
<ArrayItems Condition="_cowdata._ptr">
|
||||||
<Size>*(reinterpret_cast<int*>(_cowdata._ptr) - 1)</Size>
|
<Size>*(reinterpret_cast<long long*>(_cowdata._ptr) - 1)</Size>
|
||||||
<ValuePointer>reinterpret_cast<VMap<$T1,$T2>::Pair*>(_cowdata._ptr)</ValuePointer>
|
<ValuePointer>reinterpret_cast<VMap<$T1,$T2>::Pair*>(_cowdata._ptr)</ValuePointer>
|
||||||
</ArrayItems>
|
</ArrayItems>
|
||||||
</Expand>
|
</Expand>
|
||||||
|
|
Loading…
Reference in a new issue