'Generate code to print a Python warning for an unraisable exception.
qualified_name should be the qualified name of the function.'

def put_unraisable(self, qualified_name, nogil=False):

    format_tuple = (qualified_name, Naming.clineno_cname, Naming.lineno_cname, Naming.filename_cname, self.globalstate.directives['unraisable_tracebacks'], nogil)
    self.funcstate.uses_error_indicator = True
    self.putln(('__Pyx_WriteUnraisable("%s",    %s,    %s,    %s,    %d,    %d);' % format_tuple))
    self.globalstate.use_utility_code(UtilityCode.load_cached('WriteUnraisableException', 'Exceptions.c'))
