Skip to content

Commit 3d80b91

Browse files
authored
Natvis support for hresult_error and array_view (#914)
1 parent b52df71 commit 3d80b91

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

natvis/cppwinrt.natvis

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,15 @@
2020
<DisplayString Condition="this == 0">null</DisplayString>
2121
</Type>
2222
<!--Primitive type visualizers-->
23+
<Type Name="winrt::array_view&lt;*&gt;">
24+
<DisplayString>{{size = {m_size}, {m_data,[m_size]}}}</DisplayString>
25+
<Expand>
26+
<ArrayItems>
27+
<Size>m_size</Size>
28+
<ValuePointer>m_data</ValuePointer>
29+
</ArrayItems>
30+
</Expand>
31+
</Type>
2332
<Type Name="winrt::com_ptr&lt;*&gt;">
2433
<DisplayString>{m_ptr}</DisplayString>
2534
<Expand>
@@ -33,6 +42,9 @@
3342
<Type Name="winrt::hresult">
3443
<DisplayString>{value,hr}</DisplayString>
3544
</Type>
45+
<Type Name="winrt::hresult_error">
46+
<DisplayString>{m_code}</DisplayString>
47+
</Type>
3648
<Type Name="winrt::hstring">
3749
<DisplayString>{m_handle.m_value,sh}</DisplayString>
3850
<StringView>m_handle.m_value,sh</StringView>

0 commit comments

Comments
 (0)