Procs
proc dismiss() {.used, cpsMustJump, cpsMagicCall, ...raises: [], tags: [], forbids: [].}
- Source Edit
proc dismiss(continuation: sink Continuation): Continuation {.used, ...raises: [], tags: [], forbids: [].}
- A convenience which simply discards the continuation. Source Edit
proc firstReturn(p: NormNode): NormNode {....raises: [], tags: [], forbids: [].}
- Find the first control-flow return statement or cps control-flow within statement lists; else, nil. Source Edit
proc terminator(c: Name; contType: Name; tipe: NormNode): NormNode {....raises: [], tags: [], forbids: [].}
- produce the terminating return statement of the continuation; this should return control to the mom and dealloc the continuation, or simply set the fn to nil and return the continuation. Source Edit
Templates
template pass(source: Continuation; destination: Continuation): Continuation {. used.}
- This symbol may be reimplemented to introduce logic during the transfer of control between parent and child continuations. The return value specifies the destination continuation. Source Edit