update intercep usage comment

This commit is contained in:
Martin Baliet 2024-04-08 22:23:11 +02:00
parent 022871f218
commit 63e98d850c

View File

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