diff options
Diffstat (limited to 'utils.hpp')
-rw-r--r-- | utils.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/utils.hpp b/utils.hpp new file mode 100644 index 0000000..4a5e84d --- /dev/null +++ b/utils.hpp @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: Unlicense + */ + +#pragma once + +#ifdef __clang__ +# define UNREACHABLE __builtin_unreachable +#elif __GNUC__ +# define UNREACHABLE __builtin_unreachable +#else +# define UNREACHABLE +#endif |