Implement function-like macros substitution

Implement function-like macros substitution