diff options
Diffstat (limited to 'src/docs_writer.cpp')
| -rw-r--r-- | src/docs_writer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index 451c44c4e..25aa68167 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -756,6 +756,14 @@ OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) { doc_type.types = odin_write_slice(w, types, gb_count_of(types)); } break; + + case Type_Matrix: + doc_type.kind = OdinDocType_Matrix; + doc_type.elem_count_len = 2; + doc_type.elem_counts[0] = type->Matrix.row_count; + doc_type.elem_counts[1] = type->Matrix.column_count; + doc_type.types = odin_doc_type_as_slice(w, type->Matrix.elem); + break; } if (dst) { |