mirror of
https://github.com/odin-lang/Odin.git
synced 2025-12-31 02:12:04 +00:00
Move matrix compiler builtins to intrinsics; alias within core_builtin_matrix.odin
This commit is contained in:
@@ -4577,7 +4577,8 @@ gb_internal bool is_entity_declared_for_selector(Entity *entity, Scope *import_s
|
||||
if (entity->kind == Entity_Builtin) {
|
||||
// NOTE(bill): Builtin's are in the universal scope which is part of every scopes hierarchy
|
||||
// This means that we should just ignore the found result through it
|
||||
*allow_builtin = entity->scope == import_scope || entity->scope != builtin_pkg->scope;
|
||||
*allow_builtin = entity->scope == import_scope ||
|
||||
(entity->scope != builtin_pkg->scope && entity->scope != intrinsics_pkg->scope);
|
||||
} else if ((entity->scope->flags&ScopeFlag_Global) == ScopeFlag_Global && (import_scope->flags&ScopeFlag_Global) == 0) {
|
||||
is_declared = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user