Esempio n. 1
0
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)
}
Esempio n. 2
0
func SetGlobal(name string, value unsafe.Pointer) {
	cName := C.CString(name)
	defer C.free(unsafe.Pointer(cName))

	C.IupSetGlobal(cName, (*C.char)(value))
}