diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_obj.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lj_obj.h b/src/lj_obj.h index e541387f..52c7bc03 100644 --- a/src/lj_obj.h +++ b/src/lj_obj.h | |||
@@ -1042,4 +1042,18 @@ LJ_DATA const char *const lj_obj_itypename[~LJ_TNUMX+1]; | |||
1042 | LJ_FUNC int LJ_FASTCALL lj_obj_equal(cTValue *o1, cTValue *o2); | 1042 | LJ_FUNC int LJ_FASTCALL lj_obj_equal(cTValue *o1, cTValue *o2); |
1043 | LJ_FUNC const void * LJ_FASTCALL lj_obj_ptr(global_State *g, cTValue *o); | 1043 | LJ_FUNC const void * LJ_FASTCALL lj_obj_ptr(global_State *g, cTValue *o); |
1044 | 1044 | ||
1045 | #if LJ_ABI_PAUTH | ||
1046 | #if LJ_TARGET_ARM64 | ||
1047 | #include <ptrauth.h> | ||
1048 | #define lj_ptr_sign(ptr, ctx) \ | ||
1049 | ptrauth_sign_unauthenticated((ptr), ptrauth_key_function_pointer, (ctx)) | ||
1050 | #define lj_ptr_strip(ptr) ptrauth_strip((ptr), ptrauth_key_function_pointer) | ||
1051 | #else | ||
1052 | #error "No support for pointer authentication for this architecture" | ||
1053 | #endif | ||
1054 | #else | ||
1055 | #define lj_ptr_sign(ptr, ctx) (ptr) | ||
1056 | #define lj_ptr_strip(ptr) (ptr) | ||
1057 | #endif | ||
1058 | |||
1045 | #endif | 1059 | #endif |