~john-koepi/ubuntu/trusty/golang/default

« back to all changes in this revision

Viewing changes to src/pkg/runtime/extern.go

  • Committer: Package Import Robot
  • Author(s): Ondřej Surý
  • Date: 2012-05-02 15:44:59 UTC
  • mfrom: (14.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120502154459-wcmy8ao1325ml619
Tags: 2:1.0.1-1
* Imported Upstream version 1.0.1
* Apply godoc patch to display package list correctly (Closes: #669354)

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
 
21
21
// Caller reports file and line number information about function invocations on
22
22
// the calling goroutine's stack.  The argument skip is the number of stack frames
23
 
// to ascend, with 0 identifying the caller of Caller.  The return values report the
 
23
// to ascend, with 1 identifying the caller of Caller.  (For historical reasons the
 
24
// meaning of skip differs between Caller and Callers.) The return values report the
24
25
// program counter, file name, and line number within the file of the corresponding
25
26
// call.  The boolean ok is false if it was not possible to recover the information.
26
27
func Caller(skip int) (pc uintptr, file string, line int, ok bool)