WIP: macro

ref #1