blob: fe659e9ce2c8f404489d323e45d3e6c86763be3b [file] [log] [blame]
// Copyright 2022 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Use the nopc flag for benchmarks, on the assumption
// that retrieving the pc will become cheap.
//go:build nopc
package slog
// pc returns 0 to avoid incurring the cost of runtime.Callers.
func pc(depth int) uintptr { return 0 }