Open atopuzov opened 12 years ago
I like it; this approach is much different (and perhaps simpler) than the one I've presented. If you don't mind, I'd like to include it in an "Alternative Approaches" section. Thanks!
Hi,
Yup include it, that's why I wrote to you. It's simpler because you don't have to 'remember' the pointer to the old function, and compared to linux it's totally different. One of the nicer things is that you don't have to force flat namespace thingy. The macro itself is from <mach-o/dyld-interposing.h> http://www.opensource.apple.com/source/dyld/dyld-97.1/include/mach-o/dyld-interposing.h
Hi,
I've been looking around on how to do interposition and found your code on github. I have also found another way to do the interposition and I thought you might be interested.