Skip to content

Commit d31c03e

Browse files
committed
Add natvis file
1 parent 86d6b9a commit d31c03e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

expected.natvis

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
3+
<Type Name="tl::expected&lt;*,*&gt;">
4+
<DisplayString Condition="!m_has_val">Unexpected {m_unexpect.m_val}</DisplayString>
5+
<DisplayString Condition="strcmp(&quot;$T1&quot;,&quot;void&quot;)==0">Expected</DisplayString>
6+
<DisplayString Condition="strcmp(&quot;$T1&quot;,&quot;void&quot;)!=0">Expected {m_val}</DisplayString>
7+
8+
<Expand>
9+
<Item Name="Unexpected value" Condition="!m_has_val">m_unexpect.m_val</Item>
10+
<Item Name="Expected value" Condition="strcmp(&quot;$T1&quot;,&quot;void&quot;)!=0">m_val</Item>
11+
</Expand>
12+
</Type>
13+
</AutoVisualizer>

0 commit comments

Comments
 (0)