<p>Some open questions:</p>
<ul>
<li>Should the argument be expanded first, like doFoo() does? Using the literal value has its pros but I guess its cons too.</li>
<li>Is raising an error on undefined macro a reasonable thing to do? If not, what should it do on undefined macros?</li>
</ul>
<p>I was also tempted to add %{opts:...} which would return the option declaration string (if any), but there's no direct way to distinguish between no value (ie non-parametric macro) and empty string (parametric macro which doesn't take any options) in the return value, so it'd need some other approach.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/rpm-software-management/rpm/pull/1064?email_source=notifications&email_token=ADLPZU3OT7CJJUHFULSHE2DRCKBIDA5CNFSM4KS6RQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELMAVLI#issuecomment-584583853">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU5KNKIGQJ2DPWYJUDDRCKBIDANCNFSM4KS6RQTA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU6EAGU6AWA6MDZWU3TRCKBIDA5CNFSM4KS6RQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELMAVLI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/rpm-software-management/rpm/pull/1064?email_source=notifications\u0026email_token=ADLPZU3OT7CJJUHFULSHE2DRCKBIDA5CNFSM4KS6RQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELMAVLI#issuecomment-584583853",
"url": "https://github.com/rpm-software-management/rpm/pull/1064?email_source=notifications\u0026email_token=ADLPZU3OT7CJJUHFULSHE2DRCKBIDA5CNFSM4KS6RQTKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOELMAVLI#issuecomment-584583853",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>