Exemple #1
0
func AsCode(o *Base) (v *Code, ok bool) {
	if ok = C.codeCheck(o.c()) != 0; ok {
		v = newCode(o.c())
	}
	return
}
Exemple #2
0
func codeCheck(obj Object) bool {
	if obj == nil {
		return false
	}
	return C.codeCheck(c(obj)) != 0
}