From bfac1c73f09379ddb67b852aa7464a94d647b384 Mon Sep 17 00:00:00 2001 From: Scott Mansell Date: Fri, 30 Oct 2015 12:30:22 +1300 Subject: [PATCH] Bitfield: Add .natvis for easier debugging in Visual Studio --- Source/Core/Common/BitField.natvis | 11 +++++++++++ Source/Core/Common/Common.vcxproj | 5 ++++- Source/Core/Common/Common.vcxproj.filters | 7 ++++++- 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 Source/Core/Common/BitField.natvis diff --git a/Source/Core/Common/BitField.natvis b/Source/Core/Common/BitField.natvis new file mode 100644 index 0000000000..5d09eeef0a --- /dev/null +++ b/Source/Core/Common/BitField.natvis @@ -0,0 +1,11 @@ + + + + {(storage & (1 << $T1)) != 0} + {(storage >> $T1) & ((1 << $T2) - 1)} + + $T1 + $T2 + + + \ No newline at end of file diff --git a/Source/Core/Common/Common.vcxproj b/Source/Core/Common/Common.vcxproj index 85a9a47eb7..f92679a1b6 100644 --- a/Source/Core/Common/Common.vcxproj +++ b/Source/Core/Common/Common.vcxproj @@ -187,7 +187,10 @@ {41279555-f94f-4ebc-99de-af863c10c5c4} + + + - + \ No newline at end of file diff --git a/Source/Core/Common/Common.vcxproj.filters b/Source/Core/Common/Common.vcxproj.filters index af926981f3..e708d237dd 100644 --- a/Source/Core/Common/Common.vcxproj.filters +++ b/Source/Core/Common/Common.vcxproj.filters @@ -189,6 +189,8 @@ GL\GLInterface + + @@ -253,4 +255,7 @@ - + + + + \ No newline at end of file