Next: SUBROUTINE - Declare a SUBROUTINE argument.
Up: Full Description of F77 Macros
Previous: GENPTR_CHARACTER_ARRAY - Generate a pointer to a CHARACTER array argument
GENPTR_SUBROUTINE
- Generate a pointer to a SUBROUTINE argument.
- Description:
- Ensure that there exists a pointer to the subroutine that has been passed
as an actual argument from FORTRAN to the C function. Since FORTRAN
usually passes arguments by reference, the pointer is commonly available
directly from the argument list, so this macro is null.
- Invocation:
- GENPTR_SUBROUTINE(name)
- Arguments:
-
-
name
-
The dummy argument.
- Examples:
-
- GENPTR_SUBROUTINE(name)
- will expand as follows:
- Notes:
- The dummy argument should have been declared with the SUBROUTINE macro.
Next: SUBROUTINE - Declare a SUBROUTINE argument.
Up: Full Description of F77 Macros
Previous: GENPTR_CHARACTER_ARRAY - Generate a pointer to a CHARACTER 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