struct_other.go raw
1 // SPDX-License-Identifier: Apache-2.0
2 // SPDX-FileCopyrightText: 2024 The Ebitengine Authors
3
4 //go:build !amd64 && !arm64 && !loong64
5
6 package purego
7
8 import "reflect"
9
10 func addStruct(v reflect.Value, numInts, numFloats, numStack *int, addInt, addFloat, addStack func(uintptr), keepAlive []any) []any {
11 panic("purego: struct arguments are not supported")
12 }
13
14 func getStruct(outType reflect.Type, syscall syscall15Args) (v reflect.Value) {
15 panic("purego: struct returns are not supported")
16 }
17
18 func placeRegisters(v reflect.Value, addFloat func(uintptr), addInt func(uintptr)) {
19 panic("purego: not needed on other platforms")
20 }
21