We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90bc1cf commit 55ccc6aCopy full SHA for 55ccc6a
distutils/compilers/C/base.py
@@ -236,6 +236,9 @@ def _check_macro_definition(self, defn):
236
def _is_valid_macro(name, value=None):
237
"""
238
A valid macro is a ``name : str`` and a ``value : str | None``.
239
+
240
+ >>> Compiler._is_valid_macro('foo', None)
241
+ True
242
243
return isinstance(name, str) and isinstance(value, (str, type(None)))
244
0 commit comments