prevent closure access of qualified macros functions (close #2757)