mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-13 06:43:35 +00:00
Add #soa pointer type to aid with refactoring to #soa data types
a: #soa[16]Foo p := &a[6] #assert(type_of(p) == #soa^#soa[16]Foo) p^.x = 123 p.x = 123
This commit is contained in:
@@ -532,6 +532,10 @@ OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) {
|
||||
doc_type.kind = OdinDocType_MultiPointer;
|
||||
doc_type.types = odin_doc_type_as_slice(w, type->MultiPointer.elem);
|
||||
break;
|
||||
case Type_SoaPointer:
|
||||
doc_type.kind = OdinDocType_SoaPointer;
|
||||
doc_type.types = odin_doc_type_as_slice(w, type->SoaPointer.elem);
|
||||
break;
|
||||
case Type_Array:
|
||||
doc_type.kind = OdinDocType_Array;
|
||||
doc_type.elem_count_len = 1;
|
||||
|
||||
Reference in New Issue
Block a user