-
Notifications
You must be signed in to change notification settings - Fork 7
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
cpp_if not taken in account for associated method #44
Comments
Thank you for the detailed bug report. |
Works like a charm, thanks. Some other /error/ (or feature?) is that considering the following addition to the YAML file:
in It seems to be some issues with how
The Thank you very much. |
Upon further research/reading, the last point seems to be overturned by using EDIT: change |
I added the use of I had not considered the idea of using |
When trying to generate wrapper for the following C++ code, I end up with an error at link time when linking against the Fortran module.
C++ is like:
I do not want to expose the symbol
bar
ifENABLE_BAR
is not defined. So the YAML is such as:The result is such as:
In the case where
ENABLE_BAR
is not defined, the module will not be able to expose thefoo%bar
asfoo_bar
subroutine will not be defined, nor thec_foo_bar
interface.If I define the following FORTRAN program:
and try to link it to the module, I have the following error risen:
One solution would be to add a check to
node.cpp_if
when defining the procedure in the type definition in thewrapfFoo.f
file generated, in order to add the preprocessor directives.The text was updated successfully, but these errors were encountered: