Debian Codegraph @

libgo/go/runtime/eqtype.go

raw
1 // Copyright 2020 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 // +build !aix,gccgo
6
7 package runtime
8
9 import (
10 _ "unsafe"
11 )
12
13 // go:linkname is required as eqtype is a compiler-called
14 // function on some OSes.
15 //
16 //go:linkname eqtype
17
18 // Return whether two type descriptors are equal.
19 func eqtype(t1, t2 *_type) bool {
20 return t1 == t2
21 }