File: getcallerpc.c

package info (click to toggle)
drawterm-9front 0~git20220608.bee4db6-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 3,256 kB
  • sloc: ansic: 57,635; makefile: 607; java: 492; objc: 436; xml: 174; asm: 19
file content (8 lines) | stat: -rw-r--r-- 92 bytes parent folder | download
1
2
3
4
5
6
7
8
#include "u.h"
#include "libc.h"

uintptr
getcallerpc(void *a)
{
	return ((ulong*)a)[-1];
}