Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Tiny example of ruby-like blocks in C using swapcontext
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
It's a tiny piece of code that illustrates the use of C low-level features to implement some nice looking language primitives. Check out http://tilarids.blogspot.com/2012/03/ruby-like-blocks-and-yield-keyword-in-c.html for more info