Re:My tutorial and take on C++20 coroutines
by spc476 on Monday February 22, 2021 @04:21AM
(#26222409)
Or take advantage of the ABI of the runtime, and use assembly. [1] Yeah, not portable. But using setjmp()/longjmp() has issues as well (way too easy to mess it up because it doesn't do what you think it's doing).
[1] https://github.com/spc476/C-Coroutines