Skip to content

armgit / godot

Public Imported from GitHub
0

Godot Engine – Multi-platform 2D and 3D game engine

remove the godot::String and godot::StringName from godot.natvis, those visualizers are going to be in godot-cpp (https://github.com/godotengine/godot-cpp/pull/1977)

Ivan Shakhova87d3cbf9930
diff --git a/platform/windows/godot.natvis b/platform/windows/godot.natvis
index 5910401f054..66ec3482a0f 100644
--- a/platform/windows/godot.natvis
+++ b/platform/windows/godot.natvis
@@ -242,30 +242,12 @@
<StringView Condition="_cowdata._ptr != 0">_cowdata._ptr,s32</StringView>
</Type>
- <Type Name="godot::String">
- <DisplayString>{*reinterpret_cast&lt;void**&gt;(opaque),s32}</DisplayString>
- <Expand>
- <Item Name="opaque_ptr">*reinterpret_cast&lt;void**&gt;(opaque)</Item>
- <Item Name="string">*reinterpret_cast&lt;void**&gt;(opaque),s32</Item>
- </Expand>
- </Type>
-
<Type Name="StringName">
<DisplayString Condition="_data">{_data->name,s32}</DisplayString>
<DisplayString Condition="!_data">[empty]</DisplayString>
<StringView Condition="_data">_data->name,s32</StringView>
</Type>
- <!-- can't cast the opaque to ::StringName because Natvis does not support global namespace specifier? -->
- <Type Name="godot::StringName">
- <Intrinsic Name="get_data_ptr" Expression="(*reinterpret_cast&lt;const char32_t***&gt;(opaque))[1]" />
- <DisplayString Condition="get_data_ptr()">{get_data_ptr(),s32}</DisplayString>
- <Expand>
- <Item Name="opaque_ptr">*reinterpret_cast&lt;void**&gt;(opaque)</Item>
- <Item Name="cname">get_data_ptr(),s32</Item>
- </Expand>
- </Type>
-
<Type Name="Object::SignalData">
<DisplayString Condition="user.name._cowdata._ptr">"{user.name}" {slot_map}</DisplayString>
<DisplayString Condition="!user.name._cowdata._ptr">"{slot_map}</DisplayString>