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:
15
internal/zecall/zecall_stub.go
Normal file
15
internal/zecall/zecall_stub.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user