mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Kernel: Add VALIDATE_IS_AARCH64 guard macro
This commit is contained in:
parent
dfee6f73d2
commit
918fdf9e2c
Notes:
sideshowbarker
2024-07-17 08:42:05 +09:00
Author: https://github.com/gunnarbeutner Commit: https://github.com/SerenityOS/serenity/commit/918fdf9e2c Pull-request: https://github.com/SerenityOS/serenity/pull/15639 Reviewed-by: https://github.com/linusg Reviewed-by: https://github.com/supercomputer7 ✅
2 changed files with 9 additions and 0 deletions
|
@ -91,6 +91,12 @@
|
|||
# define VALIDATE_IS_X86() static_assert(false, "Trying to include x86 only header on non x86 platform");
|
||||
#endif
|
||||
|
||||
#if ARCH(AARCH64)
|
||||
# define VALIDATE_IS_AARCH64()
|
||||
#else
|
||||
# define VALIDATE_IS_AARCH64() static_assert(false, "Trying to include aarch64 only header on non aarch64 platform");
|
||||
#endif
|
||||
|
||||
#if !defined(AK_COMPILER_CLANG) && !defined(__CLION_IDE_) && !defined(__CLION_IDE__)
|
||||
# define AK_HAS_CONDITIONALLY_TRIVIAL
|
||||
#endif
|
||||
|
|
|
@ -6,6 +6,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Platform.h>
|
||||
VALIDATE_IS_AARCH64()
|
||||
|
||||
namespace Kernel {
|
||||
|
||||
struct RegisterState {
|
||||
|
|
Loading…
Reference in a new issue