v0.11.0-bnema.4 cf1b83e

syscall_stackargs.go RawHistoryFolder

1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: 2026 The Ebitengine Authors
3
4//go:build ppc64le || s390x
5
6package purego
7
8import "unsafe"
9
10// callbackArgs is the argument block passed from the assembly trampoline
11// to callbackWrap when C code calls a Go callback registered with NewCallback.
12// The assembly fills in the fields before calling callbackWrap, which uses
13// them to determine which Go function to invoke and where to read its
14// arguments from, and writes the return value back into result.
15//
16// callbackArgs is only used on Unix. On Windows, callbacks are handled by
17// the runtime's own callback mechanism, so this type is compiled but unused,
18// serving only as a stub to satisfy cross-platform compilation.
19type callbackArgs struct {
20	_     hostLayout
21	index uintptr
22	// args points to the argument block.
23	//
24	// The structure of the arguments goes
25	// float registers followed by the
26	// integer registers followed by the stack.
27	//
28	// This variable is treated as a contiguous
29	// block of memory containing all of the arguments
30	// for this callback.
31	args unsafe.Pointer
32	// Below are out-args from callbackWrap
33	result [1]uintptr
34	// stackArgs points to stack-passed arguments for architectures where
35	// they can't be made contiguous with register args (e.g., ppc64le).
36	// On other architectures, this is nil and stack args are read from
37	// the end of the args block.
38	stackArgs unsafe.Pointer
39}
40
41func (c *callbackArgs) stackFrame() unsafe.Pointer {
42	return c.stackArgs
43}

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 1

Tags 102

↑↓ moveenter openesc close