Merge pull request #33157 from nekomatata/natvis-node

Update natvis file to display Node class correctly in Visual Studio debugger
This commit is contained in:
Rémi Verschelde 2019-10-29 11:03:50 +01:00 committed by GitHub
commit f480d1c3b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,4 +143,12 @@
<Item Name="alpha">a</Item>
</Expand>
</Type>
<Type Name="Node" Inheritable="false">
<Expand>
<Item Name="Object">(Object*)this</Item>
<Item Name="class_name">(StringName*)(((char*)this) + sizeof(Object))</Item>
<Item Name="data">(Node::Data*)(((char*)this) + sizeof(Object) + sizeof(StringName))</Item>
</Expand>
</Type>
</AutoVisualizer>