mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Minor changes
This commit is contained in:
@@ -4486,6 +4486,8 @@ gb_internal void check_all_global_entities(Checker *c) {
|
|||||||
(void)type_align_of(e->type);
|
(void)type_align_of(e->type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gb_printf_err("Global Entity Count: %td\n", c->info.entities.count);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+5
-6
@@ -987,9 +987,8 @@ gb_internal void odin_doc_update_entities(OdinDocWriter *w) {
|
|||||||
auto entities = array_make<Entity *>(heap_allocator(), 0, w->entity_cache.count);
|
auto entities = array_make<Entity *>(heap_allocator(), 0, w->entity_cache.count);
|
||||||
defer (array_free(&entities));
|
defer (array_free(&entities));
|
||||||
|
|
||||||
for (u32 i = 0; i < w->entity_cache.count; i++) {
|
for (auto const &entry : w->entity_cache) {
|
||||||
Entity *e = w->entity_cache.entries[i].key;
|
array_add(&entities, entry.key);
|
||||||
array_add(&entities, e);
|
|
||||||
}
|
}
|
||||||
for (Entity *e : entities) {
|
for (Entity *e : entities) {
|
||||||
GB_ASSERT(e != nullptr);
|
GB_ASSERT(e != nullptr);
|
||||||
@@ -998,9 +997,9 @@ gb_internal void odin_doc_update_entities(OdinDocWriter *w) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (u32 i = 0; i < w->entity_cache.count; i++) {
|
for (auto const &entry : w->entity_cache) {
|
||||||
Entity *e = w->entity_cache.entries[i].key;
|
Entity *e = entry.key;
|
||||||
OdinDocEntityIndex entity_index = w->entity_cache.entries[i].value;
|
OdinDocEntityIndex entity_index = entry.value;
|
||||||
OdinDocTypeIndex type_index = odin_doc_type(w, e->type);
|
OdinDocTypeIndex type_index = odin_doc_type(w, e->type);
|
||||||
|
|
||||||
OdinDocEntityIndex foreign_library = 0;
|
OdinDocEntityIndex foreign_library = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user