summaryrefslogtreecommitdiff
path: root/libgcompat/internal.c
blob: 450c5e44186bf5fad771a5f66ff6ea87b7a11445 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>

void GCOMPAT__panic(const char *fmt, ...)
{
	va_list va;

	fprintf(stderr, "*** gcompat panic ***\n");

	va_start(va, fmt);
	vfprintf(stderr, fmt, va);
	va_end(va);

	abort();
}