-
Notifications
You must be signed in to change notification settings - Fork 10
/
fc.natvis
executable file
·57 lines (50 loc) · 2.88 KB
/
fc.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
47
48
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="utf-8"?>
<!-- This file contains Debugger Visualizers for the FC library. It's hard to navigate the
FC objects in a debugger because the tricks used in classes like fc::fwd require manual
casting to view the underlying objects in the debugger. This file tells the Visual
Studio debugger how to see through these tricks and traverse the classes naturally.
To install, drop this file in your My Documents\Visual Studio 2012\Visualizers directory
In addition, consider grabbing the .natvis files from the C++ Debugger Visualizers
project here to improve display of boost objects:
https://github.com/KindDragon/CPPDebuggerVisualizers#c-debugger-visualizers-
-->
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="fc::variant">
<Expand>
<Item Name="value" Condition="(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1)) == fc::variant::int64_type">*(const int64_t*)(&_data)</Item>
<Item Name="value" Condition="(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1)) == fc::variant::uint64_type">*(const uint64_t*)(&_data)</Item>
<Item Name="value" Condition="(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1)) == fc::variant::double_type">*(const double*)(&_data)</Item>
<Item Name="value" Condition="(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1)) == fc::variant::bool_type">*(const bool*)(&_data)</Item>
<Item Name="value" Condition="(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1)) == fc::variant::string_type">*(const const_string_ptr*)(&_data)</Item>
<Item Name="value" Condition="(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1)) == fc::variant::array_type">*(const const_variants_ptr*)(&_data)</Item>
<Item Name="value" Condition="(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1)) == fc::variant::object_type">*(const const_variant_object_ptr*)(&_data)</Item>
<Item Name="type">(fc::variant::type_id)(*(((char*)(&_data)) + sizeof(fc::variant) - 1))</Item>
</Expand>
</Type>
<Type Name="fc::fwd<*>">
<DisplayString>{*($T1*)(((_store)._store)._data)}</DisplayString>
<Expand>
<ExpandedItem>($T1*)(((_store)._store)._data)</ExpandedItem>
</Expand>
</Type>
<Type Name="fc::string">
<DisplayString>{my}</DisplayString>
<Expand>
<ExpandedItem>my</ExpandedItem>
</Expand>
</Type>
<Type Name="fc::optional<*>">
<DisplayString Condition="!_valid">invalid</DisplayString>
<DisplayString>valid, value = {*(($T1*)_value)}</DisplayString>
<Expand>
<Item Name="_value">($T1*)_value</Item>
<Item Name="_valid">_valid</Item>
</Expand>
</Type>
<Type Name="fc::path">
<DisplayString>{_p}</DisplayString>
<Expand>
<ExpandedItem>_p</ExpandedItem>
</Expand>
</Type>
</AutoVisualizer>