| 1 |
// SPDX-License-Identifier: Apache-2.0 |
| 2 |
// SPDX-FileCopyrightText: 2022 The Ebitengine Authors |
| 3 |
|
| 4 |
//go:build darwin || freebsd || linux || netbsd || windows |
| 5 |
|
| 6 |
package purego |
| 7 |
|
| 8 |
import ( |
| 9 |
"unsafe" |
| 10 |
) |
| 11 |
|
| 12 |
//go:linkname runtime_cgocall runtime.cgocall |
| 13 |
func runtime_cgocall(fn uintptr, arg unsafe.Pointer) int32 // from runtime/sys_libc.go |
| 14 |
|
| 15 |
// from runtime/runtime2.go, exported via go:linkname for usage with cgo assembly |
| 16 |
// pulled in as struct{} for proper linking, see https://github.com/golang/go/issues/72032 |
| 17 |
// |
| 18 |
//go:linkname runtime_goarmsoftfp runtime.goarmsoftfp |
| 19 |
var runtime_goarmsoftfp struct{} |