aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/interpreter.py
diff options
context:
space:
mode:
authorJames Hilliard <james.hilliard1@gmail.com>2019-05-26 12:31:43 -0600
committerJussi Pakkanen <jpakkane@gmail.com>2019-08-12 01:05:45 +0300
commitb21fd95f737ab96f57c45e15a1d89d5c483daec8 (patch)
treef19e6f869220b3832d4e586901d10bb059d5a5d8 /mesonbuild/ast/interpreter.py
parent8764e4f579287d2bc15d5ea8b0a5382c90712ec0 (diff)
downloadmeson-b21fd95f737ab96f57c45e15a1d89d5c483daec8.zip
meson-b21fd95f737ab96f57c45e15a1d89d5c483daec8.tar.gz
meson-b21fd95f737ab96f57c45e15a1d89d5c483daec8.tar.bz2
Add is_disabler function
This is useful if one needs to check if a variable is a disabler. Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Diffstat (limited to 'mesonbuild/ast/interpreter.py')
-rw-r--r--mesonbuild/ast/interpreter.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/ast/interpreter.py b/mesonbuild/ast/interpreter.py
index 13c717b..6684ca4 100644
--- a/mesonbuild/ast/interpreter.py
+++ b/mesonbuild/ast/interpreter.py
@@ -106,6 +106,7 @@ class AstInterpreter(interpreterbase.InterpreterBase):
'subdir': self.func_subdir,
'set_variable': self.func_do_nothing,
'get_variable': self.func_do_nothing,
+ 'is_disabler': self.func_do_nothing,
'is_variable': self.func_do_nothing,
'disabler': self.func_do_nothing,
'gettext': self.func_do_nothing,