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">
|
||||
<Type Name="Vector<*>">
|
||||
<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>
|
||||
<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>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
|
@ -12,9 +12,9 @@
|
|||
|
||||
<Type Name="Array">
|
||||
<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>
|
||||
<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>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
|
@ -22,9 +22,9 @@
|
|||
|
||||
<Type Name="TypedArray<*>">
|
||||
<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>
|
||||
<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>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
|
@ -77,7 +77,7 @@
|
|||
<Type Name="Vector<StringName>" IncludeView="NodePathHelper">
|
||||
<Expand>
|
||||
<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>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
|
@ -140,9 +140,9 @@
|
|||
|
||||
<Type Name="VMap<*,*>">
|
||||
<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">
|
||||
<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>
|
||||
</ArrayItems>
|
||||
</Expand>
|
||||
|
|
Loading…
Reference in a new issue