Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenient way to inspect ON_*Array containers in Visual Studio #15

Open
wants to merge 1 commit into
base: 7.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions opennurbs.natvis
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="utf-8"?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="ON_SimpleArray&lt;*&gt;">
<DisplayString>{{ size={m_count} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">m_count</Item>
<Item Name="[capacity]" ExcludeView="simple">m_capacity</Item>
<ArrayItems>
<Size>m_count</Size>
<ValuePointer>m_a</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="ON_ObjectArray&lt;*&gt;">
<DisplayString>{{ size={m_count} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">m_count</Item>
<Item Name="[capacity]" ExcludeView="simple">m_capacity</Item>
<ArrayItems>
<Size>m_count</Size>
<ValuePointer>m_a</ValuePointer>
</ArrayItems>
</Expand>
</Type>
<Type Name="ON_ClassArray&lt;*&gt;">
<DisplayString>{{ size={m_count} }}</DisplayString>
<Expand>
<Item Name="[size]" ExcludeView="simple">m_count</Item>
<Item Name="[capacity]" ExcludeView="simple">m_capacity</Item>
<ArrayItems>
<Size>m_count</Size>
<ValuePointer>m_a</ValuePointer>
</ArrayItems>
</Expand>
</Type>
</AutoVisualizer>
3 changes: 3 additions & 0 deletions opennurbs_public.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,9 @@
<ResourceCompile Include="opennurbs.rc" />
<ResourceCompile Include="opennurbs_public_version.rc" />
</ItemGroup>
<ItemGroup>
<Natvis Include="opennurbs.natvis" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down
3 changes: 3 additions & 0 deletions opennurbs_public_staticlib.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,9 @@
<ClCompile Include="opennurbs_zlib.cpp" />
<ClCompile Include="opennurbs_zlib_memory.cpp" />
</ItemGroup>
<ItemGroup>
<Natvis Include="opennurbs.natvis" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
Expand Down