]> git.saurik.com Git - apple/dyld.git/blob - testing/test-cases/interpose-resolver.dtest/foo.c
dyld-750.5.tar.gz
[apple/dyld.git] / testing / test-cases / interpose-resolver.dtest / foo.c
1 #include <stdlib.h>
2
3
4 static int foo_ten()
5 {
6 return 10;
7 }
8
9
10 // This foo is a "resolver" function that return the actual address of "foo"
11 void* foo()
12 {
13 __asm__(".symbol_resolver _foo"); // magic until we have compiler support
14 return &foo_ten;
15 }
16
17