github.com/ebitengine/purego@v0.8.0-alpha.2.0.20240512170805-6cd12240d332/go_runtime.go (about) 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: 2022 The Ebitengine Authors 3 4 //go:build darwin || freebsd || linux || 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 //go:linkname runtime_noescape runtime.noescape 16 //go:noescape 17 func runtime_noescape(p unsafe.Pointer) unsafe.Pointer // from runtime/stubs.go