2019-06-01, 02:37 AM
I had an idea, and significantly improved it:
Yes, it looks the same, but I've fixed all the problems with parameter numbers, and also fixed the limitation that `continue()` could only be called from directly inside the hook. Now it can be called from any child function as well, without the problems I initially envisioned with types and recursion.
PHP Code:
HOOK_NATIVE__ printf(const str[], GLOBAL_TAG_TYPES:...)
{
printf("(%s, %d...)", str, numargs() - 1);
return continue(str, ___(1));
}
Yes, it looks the same, but I've fixed all the problems with parameter numbers, and also fixed the limitation that `continue()` could only be called from directly inside the hook. Now it can be called from any child function as well, without the problems I initially envisioned with types and recursion.