mirror of
https://github.com/mappu/miqt.git
synced 2025-02-01 19:10:21 +00:00
genbindings: subclass override functions need to use goMethodName
This commit is contained in:
parent
4eb07a18ea
commit
daf3e82896
@ -1052,7 +1052,7 @@ import "C"
|
|||||||
goCbType += gfs.emitParametersGo(m.Parameters)
|
goCbType += gfs.emitParametersGo(m.Parameters)
|
||||||
goCbType += `) ` + m.ReturnType.renderReturnTypeGo(&gfs)
|
goCbType += `) ` + m.ReturnType.renderReturnTypeGo(&gfs)
|
||||||
callbackName := cabiCallbackName(c, m)
|
callbackName := cabiCallbackName(c, m)
|
||||||
ret.WriteString(`func (this *` + goClassName + `) On` + m.SafeMethodName() + `(slot ` + goCbType + `) {
|
ret.WriteString(`func (this *` + goClassName + `) On` + m.goMethodName() + `(slot ` + goCbType + `) {
|
||||||
ok := C.` + cabiOverrideVirtualName(c, m) + `(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)) )
|
ok := C.` + cabiOverrideVirtualName(c, m) + `(unsafe.Pointer(this.h), C.intptr_t(cgo.NewHandle(slot)) )
|
||||||
if !ok {
|
if !ok {
|
||||||
panic("miqt: can only override virtual methods for directly constructed types")
|
panic("miqt: can only override virtual methods for directly constructed types")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user