mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-27 11:48:59 +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: ef52fe7d2f
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)
|
#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_)
|
#if !defined(__clang__) && !defined(__CLION_IDE_)
|
||||||
# define AK_HAS_CONDITIONALLY_TRIVIAL
|
# define AK_HAS_CONDITIONALLY_TRIVIAL
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue