get-retainstack ( -- array ) (original) (raw)

get-retainstack ( -- array )
Factor handbook » The language » Continuations » Continuation implementation details

Prev: set-datastack ( array -- )
Next: set-retainstack ( array -- )

Vocabulary
kernel

Inputs
None

Outputs

array an array

Word description
Outputs an array containing a copy of the retain stack contents right before the call to this word, with the top of the stack at the end of the array.

Definition

USING: kernel.private ;

IN: kernel

: get-retainstack ( -- array ) context retainstack-for ; inline