Y
Hacker News
new
|
ask
|
show
|
jobs
by
fanf2
4531 days ago
You should have a look at Simon's preprocessor-based coroutines (as used inside PuTTY)
http://www.chiark.greenend.org.uk/~sgtatham/coroutines.html
and his more elaborate techniques for metaprogramming custom control structures in C
http://www.chiark.greenend.org.uk/~sgtatham/mp/