Yielding from within a C function

,

I'm not sure exactly what your usecase is, but you might be able to get away with using this C library for coroutines: [C/C++] Coroutines Library for Playdate