Tiny example of ruby-like blocks in C using swapcontext
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Makefile
README
cblocks.h
gens.c
gens.h
test1.c

README

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