diff options
| author | gingerBill <bill@gingerbill.org> | 2024-02-22 17:41:22 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-02-22 17:41:22 +0000 |
| commit | c9e37a08be896356ccbe011007f664dc2c78e962 (patch) | |
| tree | 8fd4c38070da99da8684b1c68521358c9da4775e | |
| parent | dcbcf75269a75a9d677104f40dd99d3610e1353d (diff) | |
Add backing type of a `bit_field` to the doc-format
| -rw-r--r-- | core/odin/doc-format/doc_format.odin | 1 | ||||
| -rw-r--r-- | src/docs_writer.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/core/odin/doc-format/doc_format.odin b/core/odin/doc-format/doc_format.odin index 360ba0d85..ebc05c4dc 100644 --- a/core/odin/doc-format/doc_format.odin +++ b/core/odin/doc-format/doc_format.odin @@ -251,6 +251,7 @@ Type :: struct { // .Multi_Pointer - 1 type: 0=element // .Matrix - 1 type: 0=element // .Soa_Pointer - 1 type: 0=element + // .Bit_Field - 1 type: 0=backing type types: Array(Type_Index), // Used by: diff --git a/src/docs_writer.cpp b/src/docs_writer.cpp index 88d9df40c..45484e13b 100644 --- a/src/docs_writer.cpp +++ b/src/docs_writer.cpp @@ -625,6 +625,7 @@ gb_internal OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type) { fields[i] = odin_doc_add_entity(w, type->BitField.fields[i]); } doc_type.entities = odin_write_slice(w, fields.data, fields.count); + doc_type.types = odin_doc_type_as_slice(w, type->BitField.backing_type); } break; |