Add check for arguments of has_members.

Ensure that has_members has at least two arguments.
pull/3682/merge
Christoph Behle 7 years ago committed by Nirbheek Chauhan
parent 9e0397805e
commit dbb3c05cf9
  1. 2
      mesonbuild/interpreter.py

@ -1092,6 +1092,8 @@ class CompilerHolder(InterpreterObject):
'dependencies', 'dependencies',
}) })
def has_members_method(self, args, kwargs): def has_members_method(self, args, kwargs):
if len(args) < 2:
raise InterpreterException('Has_members needs at least two arguments.')
check_stringlist(args) check_stringlist(args)
typename = args[0] typename = args[0]
membernames = args[1:] membernames = args[1:]

Loading…
Cancel
Save