swig-fortran / swig

This fork of SWIG creates Fortran wrapper code from C++ headers.
http://www.swig.org
Other
42 stars 11 forks source link

SWIG-like pointers #123

Closed sethrj closed 5 years ago

sethrj commented 5 years ago

This changes the behavior of arrays and pointers of fundamental types to be consistent with other SWIG languages. Notably, raw pointers are wrapped as opaque classes, since the same pointer could signify single elements or arrays. Arrays are treated the same.

Fortran-like array interaction can be restored using <typemaps.i> and applying the SWIGTYPE ARRAY to the desired variables.