def add_include_dirs(self, args):
    ids = []
    for a in args:
        if hasattr(a, 'held_object'):
            a = a.held_object
        if (not isinstance(a, IncludeDirs)):
            raise InvalidArguments('Include directory to be added is not an include directory object.')
        ids.append(a)
    self.include_dirs += ids
def add_include_dirs(self, args):
    ids = []
    for a in args:
        if hasattr(a, 'held_object'):
            a = a.held_object
        if (not isinstance(a, IncludeDirs)):
            raise InvalidArguments('Include directory to be added is not an include directory object.')
        ids.append(a)
    self.include_dirs += ids