I thought it was possible to simulate continuations with a smart use of C's setjump and longjump though I never tried to implement any. Has anyone had a similar idea ?