checkasm: arm: Use X() instead of inline ifdefs

This works fine when the referenced symbol has the same prefix
as PRIVATE_PREFIX in the same file; otherwise we could also
create a macro like X() that only prepends the extern symbol
prefix but no symbol namespace prefix.
This commit is contained in:
Martin Storsjö
2025-11-11 18:04:25 +02:00
parent 6deac59d1e
commit 2eac05d648
2 changed files with 2 additions and 10 deletions
+1 -5
View File
@@ -185,11 +185,7 @@ function checked_call_\variant, export=1
2:
movrel r0, error_message_gpr
1:
#ifdef PREFIX
bl _checkasm_fail_func
#else
bl checkasm_fail_func
#endif
bl X(fail_func)
0:
pop {r0, r1}
.ifc \variant, vfp
+1 -5
View File
@@ -190,11 +190,7 @@ function checked_call, export=1
2:
movrel x0, error_message_stack
1:
#ifdef PREFIX
bl _checkasm_fail_func
#else
bl checkasm_fail_func
#endif
bl X(fail_func)
0:
ldp x0, x1, [sp], #16
ldp d14, d15, [sp], #16