fakecgo.go 431 B

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