ast2firm: Implement casting from complex to real types.
[cparser] / adt / error.h
1 /*
2  * This file is part of cparser.
3  * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
4  */
5 #ifndef ADT_ERROR_H
6 #define ADT_ERROR_H
7
8 #include <stdio.h>
9 #include <stdlib.h>
10 #include "config.h"
11
12 static inline __attribute__((noreturn)) void panic(char const *const file, int const line, char const *const func, char const *const msg)
13 {
14         fprintf(stderr, "%s:%d: panic in %s: %s\n", file, line, func, msg);
15         abort();
16 }
17
18 #define panic(msg) panic(__FILE__, __LINE__, __func__, (msg))
19
20 #endif