Skip to content

Commit 20ecc7c

Browse files
committed
One more copliot memory added
1 parent 4804257 commit 20ecc7c

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/copilot-instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -495,6 +495,8 @@ Use these established guards — do not invent new ones:
495495

496496
> `_M_ARM` / `__arm__` is legacy 32-bit ARM which is deprecated.
497497
498+
> GNU predefined architecture macros (`__aarch64__`, `__x86_64__`, `__i386__`, `__powerpc64__`, `__arm__`) are always defined to `1` by the compiler — they are **not** merely defined/undefined like MSVC's `_M_ARM64`. Use them **bare** (without `defined()`) in `#if` expressions: `#if __aarch64__`, not `#if defined(__aarch64__)`. Using `defined()` is technically valid but inconsistent with the project's convention and suppresses `-Wundef` unnecessarily.
499+
498500
## Code Review Instructions
499501

500502
When reviewing code, focus on the following aspects:

0 commit comments

Comments
 (0)