func SetGlobal(name string, value string) { cName := C.CString(name) defer C.free(unsafe.Pointer(cName)) cValue := C.CString(value) defer C.free(unsafe.Pointer(cValue)) C.IupSetGlobal(cName, cValue) }
func SetGlobal(name string, value unsafe.Pointer) { cName := C.CString(name) defer C.free(unsafe.Pointer(cName)) C.IupSetGlobal(cName, (*C.char)(value)) }