Handles will now properly show up automatically dereferenced or NULL in Visual Studio's debug views
This commit is contained in:
parent
f6ef5a443d
commit
4e60b3495a
|
@ -0,0 +1,10 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
||||||
|
<Type Name="SHADE::Handle<*>">
|
||||||
|
<DisplayString Condition="library==nullptr">NULL</DisplayString>
|
||||||
|
<DisplayString>ID = {id.Data.Index} Version = {id.Data.Version} Type = {"$T1"} </DisplayString>
|
||||||
|
<Expand>
|
||||||
|
<ExpandedItem>(*library).objects.denseArray[(*library).objects.sparseArray[id.Data.Index]]</ExpandedItem>
|
||||||
|
</Expand>
|
||||||
|
</Type>
|
||||||
|
</AutoVisualizer>
|
|
@ -15,7 +15,8 @@ project "SHADE_Engine"
|
||||||
"%{prj.location}/src/**.hpp",
|
"%{prj.location}/src/**.hpp",
|
||||||
"%{prj.location}/src/**.c",
|
"%{prj.location}/src/**.c",
|
||||||
"%{prj.location}/src/**.cpp",
|
"%{prj.location}/src/**.cpp",
|
||||||
"%{prj.location}/src/**.glsl"
|
"%{prj.location}/src/**.glsl",
|
||||||
|
"%{prj.location}/**.natvis"
|
||||||
}
|
}
|
||||||
|
|
||||||
includedirs
|
includedirs
|
||||||
|
|
Loading…
Reference in New Issue