2swap apply
; make-primitive apply
-: make-continuation
- \ TODO: Capture parameter and return stacks in continuation
-;
+:noname ( proc -- result )
+ make-continuation
-:noname ( args -- result )
- make-continuation nil cons
- 2swap apply
+ drop if
+ nil cons
+ 2swap apply
+ else
+ 2swap 2drop
+ then
; 1 make-fa-primitive call-with-current-continuation