操作系统预定义宏:

操作系统公共定义64位系统定义
Windows_WIN32_WIN64
macOS__APPLE____LP64__
Linux__linux____LP64__
Android__ANDROID____LP64__

编译器预定义宏:

编译器编译器定义x86指令集AMD64指令集ARM32指令集Thumb指令集ARM64指令集
MSVC_MSC_VER_M_IX86_M_X64_M_ARM_M_THUMB_M_ARM64
GCC__GNUC____i386____x86_64____arm____thumb____aarch64__
Clang__clang____i386____x86_64____arm____thumb____aarch64__