File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change 370
370
#
371
371
# (This should do what fl_defined_julia_global does for flisp lowering)
372
372
function is_defined_and_owned_global (mod, name)
373
- b = _get_module_binding (mod, name)
374
- ! isnothing (b) && isdefined (b, :owner ) && b. owner === b
375
- end
376
-
377
- # Return true if `name` is defined in `mod`, the sense that accessing it is nothrow.
378
- # Has no side effects, unlike isdefined()
379
- #
380
- # (This should do what fl_nothrow_julia_global does for flisp lowering)
381
- function is_defined_nothrow_global (mod, name)
382
- b = _get_module_binding (mod, name)
383
- ! isnothing (b) && isdefined (b, :owner ) || return false
384
- isdefined (b. owner, :value )
373
+ Base. binding_kind (mod, name) === Base. PARTITION_KIND_GLOBAL
385
374
end
386
375
387
376
# "Reserve" a binding: create the binding if it doesn't exist but do not assign
You can’t perform that action at this time.
0 commit comments