From 4e60b3495acb2e2cdc86df3e98a706b5c517fa9c Mon Sep 17 00:00:00 2001 From: Kah Wei Date: Sun, 25 Sep 2022 20:28:01 +0800 Subject: [PATCH] Handles will now properly show up automatically dereferenced or NULL in Visual Studio's debug views --- SHADE_Engine/NatvisFile.natvis | 10 ++++++++++ SHADE_Engine/premake5.lua | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 SHADE_Engine/NatvisFile.natvis diff --git a/SHADE_Engine/NatvisFile.natvis b/SHADE_Engine/NatvisFile.natvis new file mode 100644 index 00000000..6747262b --- /dev/null +++ b/SHADE_Engine/NatvisFile.natvis @@ -0,0 +1,10 @@ + + + + NULL + ID = {id.Data.Index} Version = {id.Data.Version} Type = {"$T1"} + + (*library).objects.denseArray[(*library).objects.sparseArray[id.Data.Index]] + + + \ No newline at end of file diff --git a/SHADE_Engine/premake5.lua b/SHADE_Engine/premake5.lua index 84acd8fa..2e6c39f9 100644 --- a/SHADE_Engine/premake5.lua +++ b/SHADE_Engine/premake5.lua @@ -15,7 +15,8 @@ project "SHADE_Engine" "%{prj.location}/src/**.hpp", "%{prj.location}/src/**.c", "%{prj.location}/src/**.cpp", - "%{prj.location}/src/**.glsl" + "%{prj.location}/src/**.glsl", + "%{prj.location}/**.natvis" } includedirs -- 2.40.1