summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source-builder/sb/macros.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/source-builder/sb/macros.py b/source-builder/sb/macros.py
index 2af8d36..28a52b2 100644
--- a/source-builder/sb/macros.py
+++ b/source-builder/sb/macros.py
@@ -447,6 +447,9 @@ class macros:
if key in self.macros[map]:
del self.macros[map][key]
+ def defined(self, key, globals = True, maps = None):
+ return self.get(key, globals, maps) is not None
+
def expand(self, _str):
"""Simple basic expander of config file macros."""
expanded = True