Handbook
Glossary
with-context-restored ( context quot -- )
Vocabulary
raylib
.
live-coding
.
contexts
Inputs
context
a native context snapshot, or f
quot
a
quotation
Outputs
None
Word description
Releases the current context, calls the quotation, and restores the supplied context even if the quotation throws. The context must remain alive throughout the call.
Definition
USING:
continuations
kernel
;
IN:
raylib.live-coding.contexts
::
with-context-restored
( context quot -- )
[
f
make-context-current
quot
call
]
[
context
make-context-current
]
finally
;
inline