Skip to content

Commit

Permalink
Use any in PostMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
gen2brain committed Sep 5, 2023
1 parent 525a33a commit cd271aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions iup/bind_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package iup

import (
"fmt"
"runtime/cgo"
"unsafe"
)

Expand Down Expand Up @@ -62,7 +61,7 @@ func ExitLoop() {
// It is expected to be thread safe.
//
// https://www.tecgraf.puc-rio.br/iup/en/func/iuppostmessage.html
func PostMessage(ih Ihandle, s string, i int, p cgo.Handle) {
func PostMessage(ih Ihandle, s string, i int, p any) {
cS := C.CString(s)
defer C.free(unsafe.Pointer(cS))

Expand Down

0 comments on commit cd271aa

Please sign in to comment.