-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
adding documentation to base/ccallable #42945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding documentation to base/ccallable #42945
Conversation
|
Since @KristofferC mentioned the possibility of getting rid of What are the other/common uses for |
That's actually only for "apps". For libraries, it will still be needed. So would indeed be good to get this documented. |
base/c.jl
Outdated
| """ | ||
| @ccallable(def) | ||
| Julia app with `ccallable` entry-point means that the respective Julia function can be called directly from C |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is "Julia app"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this description is a bit too PackageCompiler specific. I would suggest something like:
@ccallableMake the annotated function be callable from C using its name. This can, for example, be used to expose functionality as a C-API when creating a custom Julia sysimage.
Or something along those lines...
fix #42712