Hacker News new | ask | show | jobs
by Squonk42 2456 days ago
Yes, and here is an implementation: https://github.com/naasking/async.h

Duff’s device along with the __LINE__ trick enables the creation of automatic DFAs useful to generate coroutines, protothreads and async/await alike.