summaryrefslogtreecommitdiff
path: root/libgcompat/internal.h
blob: bb107bc4d596caba8e85b4ddd15b6ee09f750015 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef LIBGCOMPAT_INTERNAL_H
#define LIBGCOMPAT_INTERNAL_H

void GCOMPAT__panic(const char *fmt, ...) __attribute__((noreturn));

#define GCOMPAT__assert_with_reason(chk, fmt, ...) \
	do {							\
		if (!(chk)) {					\
			GCOMPAT__panic(fmt, __VA_ARGS__);	\
		}						\
	}							\
	while(0);

#endif