• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] y_hooks v4(ish)
#9
I had an idea, and significantly improved it:



PHP Code:
HOOK_NATIVE__ printf(const str[], GLOBAL_TAG_TYPES:...)

{

    
printf("(%s, %d...)"strnumargs() - 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.
  Reply


Messages In This Thread
y_hooks v4(ish) - by Y_Less - 2019-05-19, 02:57 PM
RE: y_hooks v4(ish) - by JustMichael - 2019-05-21, 11:57 AM
RE: y_hooks v4(ish) - by Y_Less - 2019-05-21, 12:56 PM
RE: y_hooks v4(ish) - by JustMichael - 2019-05-21, 01:25 PM
RE: y_hooks v4(ish) - by ohmios - 2019-05-21, 02:02 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-05-21, 02:28 PM
RE: y_hooks v4(ish) - by Kar - 2019-05-21, 06:44 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-01, 01:17 AM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-01, 02:37 AM
RE: y_hooks v4(ish) - by JustMichael - 2019-06-01, 03:37 PM
RE: y_hooks v4(ish) - by Y_Less - 2019-06-02, 11:56 AM

Forum Jump: