<p><b>@mlschroe</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/rpm-software-management/rpm/pull/1053#discussion_r375748093">rpmio/macro.c</a>:</p>
<pre style='color:#555'>> @@ -1784,6 +1784,29 @@ rpmDefineMacro(rpmMacroContext mc, const char * macro, int level)
     return rc;
 }
 
+int rpmMacroIsDefined(rpmMacroContext mc, const char *n)
+{
+    int defined = 0;
+    if ((mc = rpmmctxAcquire(mc)) != NULL) {
+       if (findEntry(mc, n, 0, NULL))
+           defined = 1;
+       rpmmctxRelease(mc);
+    }
+    return defined;
+}
+
+int rpmMacroIsCallable(rpmMacroContext mc, const char *n)
+{
</pre>
<p>Wouldn't <code>rpmMacroIsParametric()</code> be a better name for this?</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/1053?email_source=notifications&email_token=ADLPZU64OH7QZ2PDBNP4CBLRBPPRTA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPL5VQ#pullrequestreview-354336470">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ADLPZU4HASLVFPSYMZ52JKTRBPPRTANCNFSM4KQY4CVQ">unsubscribe</a>.<img src="https://github.com/notifications/beacon/ADLPZU3ZYHLZQLK3HA5CJLDRBPPRTA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPL5VQ.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/1053?email_source=notifications\u0026email_token=ADLPZU64OH7QZ2PDBNP4CBLRBPPRTA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPL5VQ#pullrequestreview-354336470",
"url": "https://github.com/rpm-software-management/rpm/pull/1053?email_source=notifications\u0026email_token=ADLPZU64OH7QZ2PDBNP4CBLRBPPRTA5CNFSM4KQY4CV2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCUPL5VQ#pullrequestreview-354336470",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>