3 karma · joined February 28, 2015
Solution in the article is overly convoluted.
http://www.cs.rit.edu/~ats/books/
It is complicated, but you can take parts from it and built your own system.
We can improve the macro further by removing the unnecessary if statement and the index number: