-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmalmy.natvis
37 lines (35 loc) · 1.27 KB
/
malmy.natvis
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="Malmy::Array<*>">
<DisplayString Condition="m_data == nullptr">size={m_size}</DisplayString>
<DisplayString Condition="m_data != nullptr">size={m_size} [0]=>{m_data[0]}</DisplayString>
<Expand>
<ArrayItems>
<Size>m_size</Size>
<ValuePointer>m_data</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="Malmy::HashMap<*,*>">
<DisplayString>{{ size={m_size} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">m_size</Item>
<CustomListItems MaxItemsPerView="5000" ExcludeView="Test">
<Variable Name="i" InitialValue="0" />
<Variable Name="j" InitialValue="m_table" />
<Loop>
<Break Condition="i == m_max_id" />
<Exec>j = &m_table[i]</Exec>
<Loop>
<Break Condition="j == 0" />
<Break Condition="j == m_sentinel" />
<Break Condition="j->m_next == m_sentinel" />
<Item Name="[{j->m_key}]">j->m_value</Item>
<Exec>j = j->m_next</Exec>
</Loop>
<Exec>++i</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>
</AutoVisualizer>