You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// NewCallback converts a Go function to a function pointer conforming to the stdcall calling convention.
137
137
// This is useful when interoperating with Windows code requiring callbacks.
138
-
// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
138
+
// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
139
139
funcNewCallback(fninterface{}) uintptr {
140
140
returnsyscall.NewCallback(fn)
141
141
}
142
142
143
143
// NewCallbackCDecl converts a Go function to a function pointer conforming to the cdecl calling convention.
144
144
// This is useful when interoperating with Windows code requiring callbacks.
145
-
// The argument is expected to be a function with with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
145
+
// The argument is expected to be a function with one uintptr-sized result. The function must not have arguments with size larger than the size of uintptr.
0 commit comments