mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Bitfield: Add .natvis for easier debugging in Visual Studio
This commit is contained in:
parent
bd20dd3962
commit
bfac1c73f0
11
Source/Core/Common/BitField.natvis
Normal file
11
Source/Core/Common/BitField.natvis
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||
<Type Name="BitField<*,*,*>">
|
||||
<DisplayString Condition="$T2 == 1">{(storage & (1 << $T1)) != 0}</DisplayString>
|
||||
<DisplayString>{(storage >> $T1) & ((1 << $T2) - 1)}</DisplayString>
|
||||
<Expand>
|
||||
<Item Name="Offset">$T1</Item>
|
||||
<Item Name="Size">$T2</Item>
|
||||
</Expand>
|
||||
</Type>
|
||||
</AutoVisualizer>
|
@ -187,7 +187,10 @@
|
||||
<Project>{41279555-f94f-4ebc-99de-af863c10c5c4}</Project>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Natvis Include="BitField.natvis" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
</Project>
|
@ -189,6 +189,8 @@
|
||||
<ClInclude Include="GL\GLInterfaceBase.h">
|
||||
<Filter>GL\GLInterface</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="Assert.h" />
|
||||
<ClInclude Include="NonCopyable.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="BreakPoints.cpp" />
|
||||
@ -253,4 +255,7 @@
|
||||
<ItemGroup>
|
||||
<Text Include="CMakeLists.txt" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
<ItemGroup>
|
||||
<Natvis Include="BitField.natvis" />
|
||||
</ItemGroup>
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user