Implementing Algebraic Effects in C
microsoft.com