Add validation for invalid #macro directive