mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
Kernel: Add VALIDATE_IS_X86 macro
This commit is contained in:
parent
1c86b7043b
commit
ef52fe7d2f
Notes:
sideshowbarker
2024-07-17 23:15:19 +09:00
Author: https://github.com/jamesmintram Commit: https://github.com/SerenityOS/serenity/commit/ef52fe7d2f9 Pull-request: https://github.com/SerenityOS/serenity/pull/11141 Reviewed-by: https://github.com/bgianfo ✅ Reviewed-by: https://github.com/kleinesfilmroellchen ✅
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…
Add table
Reference in a new issue