Skip to content

Commit 110068f

Browse files
authored
adding documentation to @ccallable (#42945)
1 parent 1f484c3 commit 110068f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

base/c.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,12 @@ function expand_ccallable(rt, def)
548548
error("expected method definition in @ccallable")
549549
end
550550

551+
"""
552+
@ccallable(def)
553+
554+
Make the annotated function be callable from C using its name. This can, for example,
555+
be used to expose functionality as a C-API when creating a custom Julia sysimage.
556+
"""
551557
macro ccallable(def)
552558
expand_ccallable(nothing, def)
553559
end

0 commit comments

Comments
 (0)