syscall_sysv_others.go 713 B

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: Apache-2.0
  2. // SPDX-FileCopyrightText: 2026 The Ebitengine Authors
  3. //go:build darwin || freebsd || (linux && (386 || amd64 || arm || arm64 || loong64 || riscv64)) || netbsd
  4. package purego
  5. import "unsafe"
  6. type callbackArgs struct {
  7. index uintptr
  8. // args points to the argument block.
  9. //
  10. // The structure of the arguments goes
  11. // float registers followed by the
  12. // integer registers followed by the stack.
  13. //
  14. // This variable is treated as a continuous
  15. // block of memory containing all of the arguments
  16. // for this callback.
  17. args unsafe.Pointer
  18. // Below are out-args from callbackWrap
  19. result uintptr
  20. }
  21. func (c *callbackArgs) stackFrame() unsafe.Pointer {
  22. return nil
  23. }