github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/internal/abi/funcpc.go (about)

     1  // Copyright 2023 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !gccgo
     6  
     7  package abi
     8  
     9  // FuncPCABI0 returns the entry PC of the function f, which must be a
    10  // direct reference of a function defined as ABI0. Otherwise it is a
    11  // compile-time error.
    12  //
    13  // Implemented as a compile intrinsic.
    14  func FuncPCABI0(f interface{}) uintptr
    15  
    16  // FuncPCABIInternal returns the entry PC of the function f. If f is a
    17  // direct reference of a function, it must be defined as ABIInternal.
    18  // Otherwise it is a compile-time error. If f is not a direct reference
    19  // of a defined function, it assumes that f is a func value. Otherwise
    20  // the behavior is undefined.
    21  //
    22  // Implemented as a compile intrinsic.
    23  func FuncPCABIInternal(f interface{}) uintptr