mirror of
https://github.com/Ed94/gencpp.git
synced 2024-11-10 02:54:53 -08:00
Ed_
352da126ca
token_fmt returns StrC now. Did some fixes so it can properly function now! Lots of changes to the Array non-parsed implementation. It shows no errors in the edtitor static analysis, however I haven't tried it yet. Unfortunately have some friction with how I would like to set it up like with everything in C++... Can't inherit from ArrayBase to provide the common members to all Array defs, without introducing constructor complexity. I may be open to using constructors in the future, depends on how I feel when trying out the context pattern used in jai and odin...
40 lines
1.3 KiB
XML
40 lines
1.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
|
|
|
|
<Type Name="gen::Code">
|
|
<DisplayString>{ast.Name} {ast.Type}</DisplayString>
|
|
</Type>
|
|
|
|
<Type Name="gen::AST">
|
|
<DisplayString>{Name} {Type}</DisplayString>
|
|
</Type>
|
|
|
|
<Type Name="String">
|
|
<DisplayString Condition="Data == nullptr">null</DisplayString>
|
|
<DisplayString>{Data,na}</DisplayString>
|
|
<Expand>
|
|
<!-- Define a synthetic child element for the Header -->
|
|
<Synthetic Name="Header">
|
|
<!-- Construct a Header object from the Data pointer -->
|
|
<DisplayString>{(Header*)((char*)Data - sizeof(Header))}</DisplayString>
|
|
<!-- Define the children of the synthetic element -->
|
|
<Expand>
|
|
<Item Name="Allocator">((Header*)((char*)Data - sizeof(Header)))->Allocator</Item>
|
|
<Item Name="Length">((Header*)((char*)Data - sizeof(Header)))->Length</Item>
|
|
<Item Name="Capacity">((Header*)((char*)Data - sizeof(Header)))->Capacity</Item>
|
|
</Expand>
|
|
</Synthetic>
|
|
</Expand>
|
|
</Type>
|
|
|
|
<Type Name="String::Header">
|
|
<DisplayString>Length: {Length}, Capacity: {Capacity}</DisplayString>
|
|
<Expand>
|
|
<Item Name="Allocator">Allocator</Item>
|
|
<Item Name="Length">Length</Item>
|
|
<Item Name="Capacity">Capacity</Item>
|
|
</Expand>
|
|
</Type>
|
|
|
|
</AutoVisualizer>
|