mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-17 11:22:22 -07:00
Improve procedure group selection based on the minimum number of arguments
This commit is contained in:
@@ -2657,6 +2657,15 @@ Array<Entity *> proc_group_entities(CheckerContext *c, Operand o) {
|
||||
return procs;
|
||||
}
|
||||
|
||||
Array<Entity *> proc_group_entities_cloned(CheckerContext *c, Operand o) {
|
||||
auto entities = proc_group_entities(c, o);
|
||||
if (entities.count == 0) {
|
||||
return {};
|
||||
}
|
||||
return array_clone(permanent_allocator(), entities);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void init_core_type_info(Checker *c) {
|
||||
|
||||
Reference in New Issue
Block a user