Skip to content

Commit

Permalink
Add a NatVis file for ratpak (#2065)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcooley authored Sep 25, 2023
1 parent ca84fed commit 899014e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CalcManager/CalcManager.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,9 @@
<ClCompile Include="NumberFormattingUtils.cpp" />
<ClCompile Include="UnitConverter.cpp" />
</ItemGroup>
<ItemGroup>
<Natvis Include="ratpak.natvis" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets" />
</Project>
5 changes: 5 additions & 0 deletions src/CalcManager/CalcManager.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -162,4 +162,9 @@
</ClInclude>
<ClInclude Include="NumberFormattingUtils.h" />
</ItemGroup>
<ItemGroup>
<Natvis Include="ratpak.natvis">
<Filter>RatPack</Filter>
</Natvis>
</ItemGroup>
</Project>
16 changes: 16 additions & 0 deletions src/CalcManager/ratpak.natvis
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="_number">
<Expand>
<Item Name="sign">sign</Item>
<Item Name="exp">exp</Item>
<ArrayItems>
<Size>cdigit</Size>
<ValuePointer>mant</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="_rat">
<DisplayString>{*pp}/{*pq}</DisplayString>
</Type>
</AutoVisualizer>

0 comments on commit 899014e

Please sign in to comment.