1
0
mirror of https://github.com/SerenityOS/serenity synced 2024-07-05 19:34:52 +00:00

Kernel: Add VALIDATE_IS_X86 macro

This commit is contained in:
James Mintram 2021-12-01 17:10:36 +00:00 committed by Brian Gianforcaro
parent 1c86b7043b
commit ef52fe7d2f

View File

@ -29,6 +29,12 @@
#define ARCH(arch) (defined(AK_ARCH_##arch) && AK_ARCH_##arch)
#if ARCH(I386) || ARCH(X86_64)
# define VALIDATE_IS_X86()
#else
# define VALIDATE_IS_X86() static_assert(false, "Trying to include x86 only header on non x86 platform");
#endif
#if !defined(__clang__) && !defined(__CLION_IDE_)
# define AK_HAS_CONDITIONALLY_TRIVIAL
#endif