示例#1
0
文件: attributes.go 项目: DaviWei/iup
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)
}
示例#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))
}