diff options
author | Oxore <oxore@protonmail.com> | 2022-08-30 16:49:38 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2022-08-30 16:49:38 +0300 |
commit | ed3cf413dfe5f874f203f8b6a696af29cfc47dcd (patch) | |
tree | 9d9c181a568cf1833218444c0d2b26b33063435e /utils.hpp | |
parent | 026894023fa53fa32fd342d18e05f55743cf6c4b (diff) |
Impl emulator stepping with GDB
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 |