get_xarg

Get a subroutine argument’s descriptor

WSupported on Windows
USupported on Unix

 

 

DESCRIP *get_xarg(DESCRIP **argblock, int arg, DESCRIP *descriptor)

Arguments

argblock

The argument block pointer passed by the Synergy DBL subroutine to the C function.

arg

The number of the argument to reference.

descriptor

A pointer to a descriptor to load.

Discussion

The get_xarg function makes a copy of a subroutine argument’s descriptor.

If the argument was passed, the return value is a pointer to the descriptor. If the argument was not passed, the returned pointer is null.