...

Text file src/runtime/cgo/gcc_fatalf.c

Documentation: runtime/cgo

     1// Copyright 2014 The Go Authors. All rights reserved.
     2// Use of this source code is governed by a BSD-style
     3// license that can be found in the LICENSE file.
     4
     5//go:build aix || (!android && linux) || dragonfly || freebsd || netbsd || openbsd || solaris
     6
     7#include <stdarg.h>
     8#include <stdio.h>
     9#include <stdlib.h>
    10#include "libcgo.h"
    11
    12void
    13fatalf(const char* format, ...)
    14{
    15	va_list ap;
    16
    17	fprintf(stderr, "runtime/cgo: ");
    18	va_start(ap, format);
    19	vfprintf(stderr, format, ap);
    20	va_end(ap);
    21	fprintf(stderr, "\n");
    22	abort();
    23}

View as plain text