theos / logos

Preprocessor that simplifies Objective-C hooking.
https://theos.dev/docs/logos
Other
205 stars 34 forks source link

Always set old in register hook function #104

Closed leptos-null closed 1 year ago

leptos-null commented 1 year ago

What does this implement/fix? Explain your changes.

Does this close any currently open issues?

Not that I know of

Any relevant logs, error output, etc?

No

Any other comments?

This is a performance improvement for the case where orig was previously NULL (when hooking a method on a class that was implemented originally only in a superclass)

Where has this been tested?

Operating System: macOS

Platform: macOS

Target Platform: macOS

Toolchain Version: Apple clang version 14.0.3

SDK Version: MacOSX13.3.sdk