code: 9ferno

ref: d88bdc7d12310dee3e61978f386c12640852794b
dir: /lib9/getcallerpc-Linux-amd64.c/

View raw version
#include <lib9.h>

uintptr
getcallerpc(void *x)
{
//uintptr *lp;

//	lp = x;

//	return lp[-1];
	return (uintptr) __builtin_return_address(0);
}