github.com/primecitizens/pcz/std@v0.2.1/core/debug/debug_notpcz.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // Copyright 2023 The Prime Citizens 3 4 //go:build !pcz 5 6 package debug 7 8 import ( 9 "runtime" 10 ) 11 12 func Abort() { 13 runtime.Breakpoint() 14 } 15 16 func Return0() {} 17 18 func Breakpoint() { 19 runtime.Breakpoint() 20 } 21 22 func GetCallerPC() uintptr { 23 pc, _, _, _ := runtime.Caller(1) 24 return pc 25 } 26 27 func GetCallerSP() uintptr { 28 return 0 29 }