diff options
Diffstat (limited to 'src/common.hh')
| -rw-r--r-- | src/common.hh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/common.hh b/src/common.hh new file mode 100644 index 0000000..4eec123 --- /dev/null +++ b/src/common.hh @@ -0,0 +1,16 @@ +#ifndef COMMON_HH +#define COMMON_HH + +#include <assert.h> + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + +#if HAVE_BUILTIN_UNREACHABLE +#define NOTREACHED __builtin_unreachable() +#else +#define NOTREACHED abort() +#endif + +#endif // COMMON_HH |
