Skip to content

Commit d88b0a4

Browse files
committed
natvis for event linker
1 parent 586b6e7 commit d88b0a4

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

sources/libcore/cage-core.natvis

+34-2
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
<Item Name="radians">value.value * 3.141592653589793 / 180</Item>
6565
</Expand>
6666
</Type>
67+
6768
<Type Name="cage::Rads">
6869
<DisplayString>{value} rads</DisplayString>
6970
<Expand>
@@ -120,7 +121,7 @@
120121
</ArrayItems>
121122
</Expand>
122123
</Type>
123-
124+
124125
<Type Name="cage::Quat">
125126
<Expand>
126127
<ArrayItems>
@@ -146,7 +147,7 @@
146147
</ArrayItems>
147148
</Expand>
148149
</Type>
149-
150+
150151
<Type Name="cage::Transform">
151152
<DisplayString>{position}, {orientation}, {scale}</DisplayString>
152153
<Expand>
@@ -156,4 +157,35 @@
156157
</Expand>
157158
</Type>
158159

160+
<Type Name="std::source_location">
161+
<DisplayString>{_File,s8} {_Function,s8}</DisplayString>
162+
</Type>
163+
164+
<Type Name="cage::privat::EventLinker">
165+
<DisplayString>{order} {location}</DisplayString>
166+
<Expand>
167+
<Item Name="order">order</Item>
168+
<Item Name="location">location</Item>
169+
<Synthetic Name="listeners">
170+
<Expand>
171+
<CustomListItems MaxItemsPerView="100">
172+
<Variable Name="node" InitialValue="this" />
173+
<Loop>
174+
<Break Condition="!node->p" />
175+
<Exec>node = node->p</Exec>
176+
</Loop>
177+
<Loop>
178+
<Break Condition="!node" />
179+
<If Condition="node == this">
180+
<Item>"here:"</Item>
181+
</If>
182+
<Item>*node</Item>
183+
<Exec>node = node->n</Exec>
184+
</Loop>
185+
</CustomListItems>
186+
</Expand>
187+
</Synthetic>
188+
</Expand>
189+
</Type>
190+
159191
</AutoVisualizer>

0 commit comments

Comments
 (0)