functions which were macros in C now are D templates
Merge pull request #2 from andrea9940/master

Templates instead of functions