dyld-750.5.tar.gz
[apple/dyld.git] / testing / test-cases / interpose-weak.dtest / interposer.c
1
2 #include <mach-o/dyld-interposing.h>
3
4 extern int foo2();
5 extern int foo4() __attribute__((weak_import));
6
7
8
9 int myfoo2() { return 12; }
10 int myfoo4() { return 14; }
11
12
13
14 DYLD_INTERPOSE(myfoo2, foo2)
15 DYLD_INTERPOSE(myfoo4, foo4)