| 582 | //------------------------------------------------------------------------- |
| 583 | |
| 584 | A64_JNIEXPORT void A64HookFunction(void *const symbol, void *const replace, void **result) { |
| 585 | void *trampoline = NULL; |
| 586 | if (result != NULL) { |
| 587 | trampoline = FastAllocateTrampoline(); |
| 588 | *result = trampoline; |
| 589 | if (trampoline == NULL) return; |
| 590 | } //if |
| 591 | |
| 592 | trampoline = A64HookFunctionV(symbol, replace, trampoline, A64_MAX_INSTRUCTIONS * 10u); |
| 593 | if (trampoline == NULL && result != NULL) { |
| 594 | *result = NULL; |
| 595 | } //if |
| 596 | } |
| 597 | } |
| 598 | |
| 599 | #endif // defined(__aarch64__) |
no test coverage detected