mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
Kernel: Add VALIDATE_IS_X86 macro
This commit is contained in:
parent
1c86b7043b
commit
ef52fe7d2f
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue