mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-19 16:11:30 +00:00
Update doc format for multi-pointers
This commit is contained in:
@@ -81,6 +81,7 @@ enum OdinDocTypeKind : u32 {
|
||||
OdinDocType_SOAStructDynamic = 19,
|
||||
OdinDocType_RelativePointer = 20,
|
||||
OdinDocType_RelativeSlice = 21,
|
||||
OdinDocType_MultiPointer = 22,
|
||||
};
|
||||
|
||||
enum OdinDocTypeFlag_Basic : u32 {
|
||||
|
||||
@@ -530,6 +530,10 @@ OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) {
|
||||
doc_type.kind = OdinDocType_Pointer;
|
||||
doc_type.types = odin_doc_type_as_slice(w, type->Pointer.elem);
|
||||
break;
|
||||
case Type_MultiPointer:
|
||||
doc_type.kind = OdinDocType_MultiPointer;
|
||||
doc_type.types = odin_doc_type_as_slice(w, type->MultiPointer.elem);
|
||||
break;
|
||||
case Type_Array:
|
||||
doc_type.kind = OdinDocType_Array;
|
||||
doc_type.elem_count_len = 1;
|
||||
|
||||
Reference in New Issue
Block a user