We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8d8fe0 commit ce5229eCopy full SHA for ce5229e
crypto/secp256k1/panic_cb.go
@@ -13,14 +13,10 @@ import "unsafe"
13
// Callbacks for converting libsecp256k1 internal faults into
14
// recoverable Go panics.
15
16
-//go:linkname secp256k1GoPanicIllegal secp256k1GoPanicIllegal
17
-//go:noinline
18
func secp256k1GoPanicIllegal(msg *C.char, data unsafe.Pointer) {
19
panic("illegal argument: " + C.GoString(msg))
20
}
21
22
-//go:linkname secp256k1GoPanicError secp256k1GoPanicError
23
24
func secp256k1GoPanicError(msg *C.char, data unsafe.Pointer) {
25
panic("internal error: " + C.GoString(msg))
26
0 commit comments