Move macro definition to top of file