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.
1 parent e6a0205 commit 28ea9d1Copy full SHA for 28ea9d1
src/Utils/Utils.jl
@@ -21,24 +21,6 @@ function explode_union(T)
21
end
22
23
24
-"""
25
- pointer_from_obj(x)
26
-
27
-Returns `(p, c)` where `Base.pointer_from_objref(p) === x`.
28
29
-The pointer remains valid provided the object `c` is not garbage collected.
30
31
-function pointer_from_obj(o::T) where {T}
32
- if T.mutable
33
- c = o
34
- p = Base.pointer_from_objref(o)
35
- else
36
- c = Ref{Any}(o)
37
- p = unsafe_load(Ptr{Ptr{Cvoid}}(Base.pointer_from_objref(c)))
38
- end
39
- p, c
40
-end
41
42
"""
43
ExtraNewline(x)
44
0 commit comments