Skip to content

Commit

Permalink
Natvis for localization data
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Aug 18, 2024
1 parent df76b2e commit e8b7963
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Windows/VisualStudio/ironwail.natvis
Original file line number Diff line number Diff line change
Expand Up @@ -588,4 +588,34 @@
</Type>


<!--
================================================================================================================================
Localization entry
================================================================================================================================
-->
<Type Name="locentry_t">
<DisplayString>{key,sb}={value,s}</DisplayString>
</Type>


<!--
================================================================================================================================
Localization
================================================================================================================================
-->
<Type Name="localization_t">
<DisplayString>[{numentries} entries]</DisplayString>
<Expand>
<CustomListItems>
<Variable Name="i" InitialValue="0"/>
<Loop>
<Break Condition="i &gt;= numentries"/>
<Item Name="{entries[i].key,sb}">entries[i].value,s</Item>
<Exec>i++</Exec>
</Loop>
</CustomListItems>
</Expand>
</Type>


</AutoVisualizer>

0 comments on commit e8b7963

Please sign in to comment.