From ed3cf413dfe5f874f203f8b6a696af29cfc47dcd Mon Sep 17 00:00:00 2001 From: Oxore Date: Tue, 30 Aug 2022 16:49:38 +0300 Subject: Impl emulator stepping with GDB --- utils.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 utils.hpp (limited to 'utils.hpp') 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 -- cgit v1.2.3