Update intercept comment

This commit is contained in:
igor725 2024-05-28 08:55:32 +03:00
parent 82a1e3fcc0
commit 5d6b5cdf5c
No known key found for this signature in database
GPG Key ID: 46F13BBE46F8569D

View File

@ -24,12 +24,12 @@ void init() {
void initIntercepts() {
/*Usage
// functions has to be of SYSV_ABI!
accessRuntimeExport()->interceptAdd((uintptr_t)int_Malloc, "Y7aJ1uydPMo", "libc", "libc")
accessRuntimeLinker().interceptAdd((uintptr_t)int_Malloc, "Y7aJ1uydPMo", "libc", "libc")
// Calling original
auto const origFunction = accessRuntimeExport()->interceptGetAddr((uintptr_t)int_Malloc);
auto const origFunction = accessRuntimeLinker().interceptGetAddr((uintptr_t)int_Malloc);
typedef SYSV_ABI void* (*fcnPtr)(void*, size_t);
void* ret = ((fcnPtr)origFunction)(ptr, size);
*/
}
} // namespace intern
} // namespace intern