Skip to content

Commit

Permalink
Add natvis file
Browse files Browse the repository at this point in the history
  • Loading branch information
TartanLlama committed Jan 21, 2025
1 parent 86d6b9a commit d31c03e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions expected.natvis
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="tl::expected&lt;*,*&gt;">
<DisplayString Condition="!m_has_val">Unexpected {m_unexpect.m_val}</DisplayString>
<DisplayString Condition="strcmp(&quot;$T1&quot;,&quot;void&quot;)==0">Expected</DisplayString>
<DisplayString Condition="strcmp(&quot;$T1&quot;,&quot;void&quot;)!=0">Expected {m_val}</DisplayString>

<Expand>
<Item Name="Unexpected value" Condition="!m_has_val">m_unexpect.m_val</Item>
<Item Name="Expected value" Condition="strcmp(&quot;$T1&quot;,&quot;void&quot;)!=0">m_val</Item>
</Expand>
</Type>
</AutoVisualizer>

0 comments on commit d31c03e

Please sign in to comment.