forked from gsl-lite/gsl-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gsl-lite.natvis
46 lines (41 loc) · 1.4 KB
/
gsl-lite.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
38
39
40
41
42
43
44
45
46
<?xml version="1.0" encoding="utf-8"?>
<!--
This will make GitHub and some editors recognize this code as XML:
vim: syntax=xml
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="gsl::fail_fast">
<!-- na hides the address, otherwise it would appear as 0x.... "Message" -->
<DisplayString>{_Data._What,nasb}</DisplayString>
</Type>
<Type Name="gsl::final_action<*>">
<DisplayString>{{ invoke = {invoke_}, action = {action_} }}</DisplayString>
<Expand>
<Item Name="[invoke]">invoke_</Item>
<Item Name="[callback]">action_</Item>
</Expand>
</Type>
<Type Name="gsl::span<*>">
<DisplayString>{{ size={last_ - first_} }}</DisplayString>
<Expand>
<Item Name="[size]">last_ - first_</Item>
<ArrayItems>
<Size>last_ - first_</Size>
<ValuePointer>first_</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="gsl::basic_string_span<*>">
<DisplayString>{span_.first_,[span_.last_ - span_.first_]na}</DisplayString>
<Expand>
<Item Name="[size]">span_.last_ - span_.first_</Item>
<ArrayItems>
<Size>span_.last_ - span_.first_</Size>
<ValuePointer>span_.first_</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="gsl::not_null<*>">
<DisplayString>value = {*ptr_}</DisplayString>
</Type>
</AutoVisualizer>