1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: 2022 The Ebitengine Authors
3
4//go:build cgo
5
6package purego
7
8import (
9 "github.com/ebitengine/purego/internal/cgo"
10)
11
12// this is linked to a C function from internal/cgo
13var syscall9XABI0 uintptr
14
15// this is only here to make the assembly files happy :)
16type syscall9Args struct {
17 fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr
18 f1, f2, f3, f4, f5, f6, f7, f8 float64
19 r1, r2, err uintptr
20}
21
22//go:nosplit
23func syscall_syscall9X(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9 uintptr) (r1, r2, err uintptr) {
24 return cgo.Syscall9X(fn, a1, a2, a3, a4, a5, a6, a7, a8, a9)
25}
26
27func NewCallback(_ interface{}) uintptr {
28 panic("purego: NewCallback not supported")
29}