def add_global_arguments(self, node, argsdict, args, kwargs):
    if self.is_subproject():
        msg = "Function '{}' cannot be used in subprojects because there is no way to make that reliable.\nPlease only call this if is_subproject() returns false. Alternatively, define a variable that\ncontains your language-specific arguments and add it to the appropriate *_args kwarg in each target.".format(node.func_name)
        raise InvalidCode(msg)
    frozen = (self.project_args_frozen or self.global_args_frozen)
    self.add_arguments(node, argsdict, frozen, args, kwargs)
def add_global_arguments(self, node, argsdict, args, kwargs):
    if self.is_subproject():
        msg = "Function '{}' cannot be used in subprojects because there is no way to make that reliable.\nPlease only call this if is_subproject() returns false. Alternatively, define a variable that\ncontains your language-specific arguments and add it to the appropriate *_args kwarg in each target.".format(node.func_name)
        raise InvalidCode(msg)
    frozen = (self.project_args_frozen or self.global_args_frozen)
    self.add_arguments(node, argsdict, frozen, args, kwargs)