diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2022-10-16 16:55:42 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-10-16 17:35:37 +0200 |
commit | 918fdf9e2ccfdd387c2629bea4153f2f648f10d1 (patch) | |
tree | fa47a70ca354e21787c3c162a424b3eb126ff2d5 /AK/Platform.h | |
parent | dfee6f73d23e467ab1d20670b4a34bbfdcdf6aaa (diff) | |
download | serenity-918fdf9e2ccfdd387c2629bea4153f2f648f10d1.zip |
Kernel: Add VALIDATE_IS_AARCH64 guard macro
Diffstat (limited to 'AK/Platform.h')
-rw-r--r-- | AK/Platform.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/AK/Platform.h b/AK/Platform.h index 59d767a93d..9208c4dcc0 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -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 |