Check macro def return type
Fixed wrong location of error message