mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-23 10:50:01 +00:00
Bitfield: Add .natvis for easier debugging in Visual Studio
This commit is contained in:
parent
bd20dd3962
commit
bfac1c73f0
3 changed files with 21 additions and 2 deletions
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>
|
Loading…
Add table
Add a link
Reference in a new issue