示例#1
0
文件: type.go 项目: MogeiWang/py
func AsType(o *Base) (v *Type, ok bool) {
	if ok = C.typeCheck(o.c()) != 0; ok {
		v = newType(o.c())
	}
	return
}
示例#2
0
func typeCheck(obj Object) bool {
	if obj == nil {
		return false
	}
	return C.typeCheck(c(obj)) != 0
}