mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:07:34 +00:00
Kernel: Add VALIDATE_IS_AARCH64 guard macro
This commit is contained in:
parent
dfee6f73d2
commit
918fdf9e2c
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…
Add table
Add a link
Reference in a new issue