next up previous 252
Next: type - Declare a type argument
Up: Full Description of F77 Macros
Previous: GENPTR_type_ARRAY - Generate a pointer to an array argument


GENPTR_type_FUNCTION - Generate a pointer to a FUNCTION argument

Description:
Ensure that there exists a pointer of the appropriate type to the FORTRAN FUNCTION that has been passed as an actual argument from FORTRAN to a C routine. Since FORTRAN usually passes arguments by reference, the pointer is commonly available directly from the argument list, so this macro is null. (type not LOCATOR.)

Invocation:
GENPTR_type_FUNCTION(name)

Arguments:

name
The dummy argument.

Examples:

GENPTR_type_FUNCTION(name)
will expand as follows:

All systems:


Notes:
The dummy argument should have been declared with the type_FUNCTION macro.



next up previous 252
Next: type - Declare a type argument
Up: Full Description of F77 Macros
Previous: GENPTR_type_ARRAY - Generate a pointer to an array argument

CNF and F77 Mixed Language Programming -- FORTRAN and C
Starlink User Note 209
P.M. Allan
A.J. Chipperfield
R.F. Warren-Smith
19 January 2000
E-mail:ussc@star.rl.ac.uk