summaryrefslogtreecommitdiffhomepage
path: root/src/unreachable.h
blob: 99c82b5b26f3cc033fa7a31a55845bc7c190049e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* This file is dedicated to the public domain. */

#ifndef INC_UNREACHABLE_H
#define INC_UNREACHABLE_H

#if defined(__GNUC__) || defined(__clang__)
#define unreachable __builtin_unreachable()
#else
#define unreachable do; while (0)
#endif

#endif

// vi: sw=4 ts=4 noet tw=80 cc=80