mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-27 00:05:34 +01: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,6 +187,9 @@
|
|||||||
<Project>{41279555-f94f-4ebc-99de-af863c10c5c4}</Project>
|
<Project>{41279555-f94f-4ebc-99de-af863c10c5c4}</Project>
|
||||||
</ProjectReference>
|
</ProjectReference>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Natvis Include="BitField.natvis" />
|
||||||
|
</ItemGroup>
|
||||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||||
<ImportGroup Label="ExtensionTargets">
|
<ImportGroup Label="ExtensionTargets">
|
||||||
</ImportGroup>
|
</ImportGroup>
|
||||||
|
@ -189,6 +189,8 @@
|
|||||||
<ClInclude Include="GL\GLInterfaceBase.h">
|
<ClInclude Include="GL\GLInterfaceBase.h">
|
||||||
<Filter>GL\GLInterface</Filter>
|
<Filter>GL\GLInterface</Filter>
|
||||||
</ClInclude>
|
</ClInclude>
|
||||||
|
<ClInclude Include="Assert.h" />
|
||||||
|
<ClInclude Include="NonCopyable.h" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ClCompile Include="BreakPoints.cpp" />
|
<ClCompile Include="BreakPoints.cpp" />
|
||||||
@ -253,4 +255,7 @@
|
|||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Text Include="CMakeLists.txt" />
|
<Text Include="CMakeLists.txt" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
<ItemGroup>
|
||||||
|
<Natvis Include="BitField.natvis" />
|
||||||
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
Loading…
x
Reference in New Issue
Block a user