summaryrefslogblamecommitdiff
path: root/libgcompat/internal.h
blob: 3b08271569643f23c07eaafdfac3124df244f25a (plain) (tree)
1
2
3
4
5
6
7
8
9




                                                                    
                                                                 

                                                                 
                                                                 




                                                                 
#ifndef LIBGCOMPAT_INTERNAL_H
#define LIBGCOMPAT_INTERNAL_H

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

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

#endif