macro registered by oncompile event
Merge pull request #20 from jirinapravnik/master

Add macro in onCompile hook