Beispiel #1
0
// Transform transforms the value into dst.
func (v *Value) Transform(dst *Value) {
	if !v.Type().Transformable(dst.Type()) {
		panic(fmt.Sprintf("can't transform %s into %s", v.Type(), dst.Type()))
	}
	C.g_value_transform(v.g(), dst.g())
}
Beispiel #2
0
// g_value_transform
func (this *Value) Transform(src *Value) bool {
	return C.g_value_transform(src.asC(), this.asC()) != 0
}