mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-23 05:29:53 +00:00
Add CS_aarch64 macro without parameter. (#2220)
This commit is contained in:
parent
dec87d6190
commit
d7e459d026
@ -89,6 +89,12 @@ extern "C" {
|
|||||||
#define CS_AARCH64_VL_(x) AArch64Layout_VL_##x
|
#define CS_AARCH64_VL_(x) AArch64Layout_VL_##x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CS_NEXT_VERSION < 6
|
||||||
|
#define CS_aarch64_ arm64
|
||||||
|
#else
|
||||||
|
#define CS_aarch64_ aarch64
|
||||||
|
#endif
|
||||||
|
|
||||||
#if CS_NEXT_VERSION < 6
|
#if CS_NEXT_VERSION < 6
|
||||||
#define CS_aarch64(x) arm64##x
|
#define CS_aarch64(x) arm64##x
|
||||||
#else
|
#else
|
||||||
|
@ -232,7 +232,7 @@ void test_macros() {
|
|||||||
CS_cs_aarch64() arm64_detail = { 0 };
|
CS_cs_aarch64() arm64_detail = { 0 };
|
||||||
detail.arm64 = arm64_detail;
|
detail.arm64 = arm64_detail;
|
||||||
CS_aarch64_op() op = { 0 };
|
CS_aarch64_op() op = { 0 };
|
||||||
detail.CS_aarch64().operands[0] = op;
|
detail.CS_aarch64_.operands[0] = op;
|
||||||
CS_aarch64_reg() reg = 1;
|
CS_aarch64_reg() reg = 1;
|
||||||
CS_aarch64_cc() cc = ARM64_CC_AL;
|
CS_aarch64_cc() cc = ARM64_CC_AL;
|
||||||
CS_aarch64_extender() arm64_extender = ARM64_EXT_SXTB;
|
CS_aarch64_extender() arm64_extender = ARM64_EXT_SXTB;
|
||||||
|
Loading…
Reference in New Issue
Block a user