Blame


1 323e1a8f 2020-01-09 rsc #include <u.h>
2 323e1a8f 2020-01-09 rsc #include <libc.h>
3 323e1a8f 2020-01-09 rsc
4 323e1a8f 2020-01-09 rsc /*
5 323e1a8f 2020-01-09 rsc * On gcc and clang, getcallerpc is a macro invoking a compiler builtin.
6 323e1a8f 2020-01-09 rsc * If the macro in libc.h did not trigger, there's no implementation.
7 323e1a8f 2020-01-09 rsc */
8 323e1a8f 2020-01-09 rsc #undef getcallerpc
9 323e1a8f 2020-01-09 rsc ulong
10 323e1a8f 2020-01-09 rsc getcallerpc(void *v)
11 323e1a8f 2020-01-09 rsc {
12 323e1a8f 2020-01-09 rsc return 1;
13 323e1a8f 2020-01-09 rsc }