aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter.py
diff options
context:
space:
mode:
authorChristoph Behle <behlec@gmail.com>2018-06-13 20:22:22 +0200
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2018-06-18 07:52:15 +0000
commitdbb3c05cf93ce3425e9607af574226995de3f9dc (patch)
tree117da6f6a4ec6a2b394acd52587551970c79ba7f /mesonbuild/interpreter.py
parent9e0397805e80adcace18eaeb9a31822dd793264b (diff)
downloadmeson-dbb3c05cf93ce3425e9607af574226995de3f9dc.zip
meson-dbb3c05cf93ce3425e9607af574226995de3f9dc.tar.gz
meson-dbb3c05cf93ce3425e9607af574226995de3f9dc.tar.bz2
Add check for arguments of has_members.
Ensure that has_members has at least two arguments.
Diffstat (limited to 'mesonbuild/interpreter.py')
-rw-r--r--mesonbuild/interpreter.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/interpreter.py b/mesonbuild/interpreter.py
index 3de58bd..343b7a5 100644
--- a/mesonbuild/interpreter.py
+++ b/mesonbuild/interpreter.py
@@ -1092,6 +1092,8 @@ class CompilerHolder(InterpreterObject):
'dependencies',
})
def has_members_method(self, args, kwargs):
+ if len(args) < 2:
+ raise InterpreterException('Has_members needs at least two arguments.')
check_stringlist(args)
typename = args[0]
membernames = args[1:]