mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-21 13:55:19 +00:00
Update doc-writer
This commit is contained in:
@@ -94,6 +94,7 @@ enum OdinDocTypeFlag_Struct : u32 {
|
||||
OdinDocTypeFlag_Struct_polymorphic = 1<<0,
|
||||
OdinDocTypeFlag_Struct_packed = 1<<1,
|
||||
OdinDocTypeFlag_Struct_raw_union = 1<<2,
|
||||
OdinDocTypeFlag_Struct_all_or_none = 1<<3,
|
||||
};
|
||||
|
||||
enum OdinDocTypeFlag_Union : u32 {
|
||||
|
||||
@@ -620,6 +620,7 @@ gb_internal OdinDocTypeIndex odin_doc_type(OdinDocWriter *w, Type *type, bool ca
|
||||
if (type->Struct.is_polymorphic) { doc_type.flags |= OdinDocTypeFlag_Struct_polymorphic; }
|
||||
if (type->Struct.is_packed) { doc_type.flags |= OdinDocTypeFlag_Struct_packed; }
|
||||
if (type->Struct.is_raw_union) { doc_type.flags |= OdinDocTypeFlag_Struct_raw_union; }
|
||||
if (type->Struct.is_all_or_none) { doc_type.flags |= OdinDocTypeFlag_Struct_all_or_none; }
|
||||
|
||||
auto fields = array_make<OdinDocEntityIndex>(heap_allocator(), type->Struct.fields.count);
|
||||
defer (array_free(&fields));
|
||||
|
||||
Reference in New Issue
Block a user