Skip to content
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

Generate header file from macros #6

Open
simonbyrne opened this issue Sep 17, 2020 · 0 comments
Open

Generate header file from macros #6

simonbyrne opened this issue Sep 17, 2020 · 0 comments

Comments

@simonbyrne
Copy link
Owner

We would need some way to specify C function signatures, but it would be nice if we could write something like

@ccallable function julia_cg(fptr::CfnPtr{Cint, (Ptr{Cdouble}, Ptr{Cdouble})}, cx::Ptr{Cdouble}, cb::Ptr{Cdouble}, len::Csize_t)::Cint
   ...
end

and generate the declaration for the header:

int julia_cg(int (*fptr)(double*,double*), double *cx, double *cb, size_t len);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant