Inline unkcall.
This commit is contained in:
parent
7f62cdabe7
commit
619a8f8377
1 changed files with 1 additions and 6 deletions
|
@ -50,12 +50,7 @@ func (u *IUnknown) Release() {
|
||||||
|
|
||||||
//go:uintptrescapes
|
//go:uintptrescapes
|
||||||
func (u *IUnknown) call(trap uintptr, a ...uintptr) (r1, r2 uintptr, lastErr error) {
|
func (u *IUnknown) call(trap uintptr, a ...uintptr) (r1, r2 uintptr, lastErr error) {
|
||||||
return unkcall(uintptr(unsafe.Pointer(u)), trap, a...)
|
return syscall.SyscallN(trap, append([]uintptr{uintptr(unsafe.Pointer(u))}, a...)...)
|
||||||
}
|
|
||||||
|
|
||||||
//go:uintptrescapes
|
|
||||||
func unkcall(self, trap uintptr, a ...uintptr) (r1, r2 uintptr, lastErr error) {
|
|
||||||
return syscall.SyscallN(trap, append([]uintptr{self}, a...)...)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// https://github.com/wine-mirror/wine/blob/master/include/objidl.idl
|
// https://github.com/wine-mirror/wine/blob/master/include/objidl.idl
|
||||||
|
|
Loading…
Reference in a new issue