1
0
mirror of https://github.com/fumiama/gozel.git synced 2026-07-01 08:10:24 +08:00

feat(gen&zecall): add function support

This commit is contained in:
源文雨
2026-03-22 18:12:12 +08:00
parent e91efbc86f
commit 64f95b23a7
33 changed files with 9568 additions and 265 deletions

View File

@@ -0,0 +1,15 @@
//go:build !linux && !windows
package zecall
// Register a process for calling. For generated init only. Not thread-safe.
func Register(string) error {
return ErrNotImplemented
}
// Syscall invokes a registered proc by name. For generated call only.
// The go:uintptrescapes directive tells the compiler that args may contain
// pointers converted to uintptr, so the GC will keep them alive during the call.
func Syscall(name string, args ...uintptr) (uintptr, uintptr, error) {
return 0, 0, ErrNotImplemented
}