[petsc-dev] FFI-wrapping PETSc structs that contain macros
Jed Brown
jed at jedbrown.org
Thu May 14 15:26:50 CDT 2015
Marco Zocca <zocca.marco at gmail.com> writes:
> Dear all,
>
> I am trying to write a petsc foreign-function wrapper for a different language.
> What I don't understand at the moment is the role of macros in setting
> up structs. For example, in the implementation of Vec summarised
> below, when and how is PETSCHEADER expanded?
It's expanded by the C Preprocessor. But why are you looking at this?
Those are private headers not even available to C callers. Why do you
feel compelled to access these from a different language?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20150514/40c25892/attachment.sig>
More information about the petsc-dev
mailing list