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

Make function pointers type-safe #116

Closed sethrj closed 4 years ago

sethrj commented 5 years ago

Currently it's up to the user to ensure that a procedure that's passed has the right type, and to convert it to the right interface when calling from Fortran. It should be possible using something like the existing $fclasstype stuff to generate abstract interfaces in the Fortran code that have the right C-bound signatures.