LIVE
Loading live headlines…
Home Trending World Technology Entertainment Gaming Sports Music Science Lifestyle Business About Contact
c/cpp by u/CodiUnicorn 2w ago vittorioromeo.com

stackless coroutines for gamedev in ~200 lines of C++

3 upvotes 0 comments
C++20 coroutines have lovely syntax. They are also a terrible fit for game development. In this article, the author will present sfex::Coroutine: a ~200-line stackless macro-based coroutine library built around a variant of the classic switch + __LINE__ trick.
Visit source Open discussion