summaryrefslogtreecommitdiffstats
path: root/source/core/core.natvis
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/core.natvis')
-rw-r--r--source/core/core.natvis8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/core/core.natvis b/source/core/core.natvis
index f2547b3fe..b9e7009e4 100644
--- a/source/core/core.natvis
+++ b/source/core/core.natvis
@@ -102,6 +102,14 @@
</Expand>
</Type>
+<Type Name="Slang::RelativePtr&lt;*,*&gt;">
+ <SmartPointer Usage="Minimal">_offset == 0 ? nullptr : ($T1*)((char*)this + _offset)</SmartPointer>
+ <DisplayString Condition="_offset == 0">{($T1*)0}</DisplayString>
+ <DisplayString Condition="_offset != 0">{($T1*)((char*)this + _offset)}</DisplayString>
+ <Expand>
+ <ExpandedItem>_offset == 0 ? nullptr : ($T1*)((char*)this + _offset)</ExpandedItem>
+ </Expand>
+</Type>
<Type Name="Slang::Safe32Ptr&lt;*&gt;">
<Expand>