PASSER - find who last invoked a co-routine.

Usage:

B:
   fcv = passer( [fcv1] );
C:
   void *passer( [void *fcv1] );

Where:

fcv1
points to the co-routine whose passer is to be determined. If "fcv1" is not specified, the default is the current co-routine.
fcv
is a pointer to the co-routine which last invoked the indicated co-routine.

Description:

PASSER is used to determine the co-routine that last passed control by any means to the indicated co-routine. By using PASSER, a co-routine need not know the name of its partner at compilation time. For instance, you can construct a chain of co-routines, each of which knows its successor (which was passed as an argument at CREATE), and each of which uses PASSER to find its predecessor.

See Also:

expl b lib .cobrk
expl b lib call
expl b lib resume
expl b lib type

Copyright © 1996, Thinkage Ltd.