We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
is_defined_and_owned_global
1 parent 690ef9c commit 8ec1e5bCopy full SHA for 8ec1e5b
src/runtime.jl
@@ -371,8 +371,7 @@ end
371
#
372
# (This should do what fl_defined_julia_global does for flisp lowering)
373
function is_defined_and_owned_global(mod, name)
374
- b = _get_module_binding(mod, name)
375
- !isnothing(b) && isdefined(b, :owner) && b.owner === b
+ Base.binding_kind(mod, name) === Base.PARTITION_KIND_GLOBAL
376
end
377
378
# "Reserve" a binding: create the binding if it doesn't exist but do not assign
0 commit comments