get-callstack ( -- callstack )
Factor handbook > The language > Continuations > Continuation implementation details

Prev:set-retainstack ( array -- )
Next:set-callstack ( callstack -- * )


Inputs and outputs
callstacka callstack

Word description
Outputs a copy of the call stack contents, with the top of the stack at the end of the vector. The stack frame of the caller word is not included. Each group of three elements in the callstack is frame:
The first element is the executing word or quotation.
The second element is the executing quotation.
The third element is the offset in the executing quotation, or -1 if the offset can't be determined.