-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathjsb.natvis
17 lines (17 loc) · 930 Bytes
/
jsb.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="jsb::internal::SArray<*,*,jsb::internal::AnsiAllocator>">
<DisplayString Condition="_used_size == 0">Empty</DisplayString>
<Expand>
<CustomListItems Condition="_used_size > 0">
<Variable Name="tIndex" InitialValue="_first_index" />
<Size>_used_size</Size>
<Loop>
<Break Condition="tIndex == -1" />
<Item>((jsb::internal::SArray<$T1,$T2,jsb::internal::AnsiAllocator>::Slot*) allocator.data)[tIndex].value</Item>
<Exec>tIndex = ((jsb::internal::SArray<$T1,$T2,jsb::internal::AnsiAllocator>::Slot*) allocator.data)[tIndex].next</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
</AutoVisualizer>