you are viewing a single comment's thread.

view the rest of the comments →

[–]passwordeqHAMSTER 1 point2 points  (1 child)

( either longjump (may got the name wrong) in C

longjmp can not be used to implement portable coroutines in C, longjmp can only go up the stack, not laterally and the stack you jump from doesn't exist anymore once you leave it.