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.
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.