Example #1
0
func intCheck(obj Object) bool {
	if obj == nil {
		return false
	}
	return C.intCheck(c(obj)) != 0
}
Example #2
0
File: int.go Project: MogeiWang/py
func AsInt(o *Base) (v *Int, ok bool) {
	if ok = C.intCheck(o.c()) != 0; ok {
		v = newInt(o.c())
	}
	return
}