VMS Help  —  MACRO  /ALPHA  Supplied Library Macros, $RETURN
    Generates a standard epilogue instruction sequence.

    Format

      $RETURN

1  –  Description

    Generates a standard epilogue instruction sequence when used
    within a stack or register routine defined with the $ROUTINE
    macro. The epilogue sequence generated by $RETURN restores any
    registers you specify with the SAVED_REGS argument to $ROUTINE
    and performs stack frame management as necessary. You can use
    $RETURN whether or not you specify STANDARD_PROLOGUE as TRUE or
    accept the default.

    You can use $RETURN any number of times within a given stack or
    register routine to affect a return to the calling routine.

    You must not use the $BEGIN_EPILOGUE or $END_EPILOGUE macros
    for an epilogue sequence generated by $RETURN. $RETURN invokes
    $BEGIN_EPILOGUE and $END_EPILOGUE for you.

2  –  Example

        $ROUTINE FOOZLE, KIND=REGISTER, SAVE_FP=R1
            :
            :
            :
        $RETURN
        $END_ROUTINE FOOZLE
Close Help