fakecgo.go raw
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: 2025 The Ebitengine Authors
3
4 //go:build !cgo && (darwin || freebsd || linux || netbsd)
5
6 package fakecgo
7
8 import _ "unsafe"
9
10 // setg_trampoline calls setg with the G provided
11 func setg_trampoline(setg uintptr, G uintptr)
12
13 // call5 takes fn the C function and 5 arguments and calls the function with those arguments
14 func call5(fn, a1, a2, a3, a4, a5 uintptr) uintptr
15