Exemple #1
0
func (t *Type) Init(obj *Base, args *Tuple, kw *Dict) error {
	ret := C.typeInit(t.c(), obj.c(), args.c(), kw.c())
	if ret < 0 {
		return exception()
	}
	return nil
}
Exemple #2
0
func (t *Type) Init(obj Object, args *Tuple, kw *Dict) error {
	ret := C.typeInit(c(t), c(obj), c(args), c(kw))
	if ret < 0 {
		return exception()
	}
	return nil
}