Property definitions

nitc $ FromObjCCallContext :: defaultinit
private class FromObjCCallContext
	super ObjCCallContext

	redef fun cast_to(mtype, name)
	do
		if mtype isa MClassType and mtype.mclass.ftype isa ForeignObjCType then
			return "(__bridge void*)({name})"
		else return name
	end

	redef fun cast_from(mtype, name)
	do
		if mtype isa MClassType and mtype.mclass.ftype isa ForeignObjCType then
			return "(__bridge {name_mtype(mtype)})({name})"
		else return name
	end
end
src/ffi/objc.nit:240,1--256,3