-
Notifications
You must be signed in to change notification settings - Fork 66
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
docstring support for functions #396
Conversation
Hi, thanks for the nice work on CxxWrap.jl. So I tried to implement something similar, passing a string from C++ to Julia which is used as a docstring. I don't know the workflow for merging some changes into both CxxWrap and libcxxwrap-julia, so I just opened 2 pull-requests for further discussion. Thanks for looking into this and happy holidays! |
Thanks for this and sorry for my slow response. This is definitely nice to have, I'll look into this over the next week and at the same time figure out a new way to test PRs that change both C++ and Julia sides, since currently this is too difficult. |
Facing the question on how to properly add docstrings and came across this PR... very nice! Are there any updates on if/when this might make it to a released version of CxxWrap.jl? |
At least for this case, it could work to update first libcxxwrap and then CxxWrap.jl: the only interface is the doc argument the CppFunctionInfoStruct: |
I have pushed the changes here (plus the removal of the |
Thanks! |
Merged manually into main, can already be used by adding |
Uses an additional (optional) argument in libcxxwrap-julia
method
functions to pass a docstring from C++ to Julia.