fix syntax error for macro substituting a function call