# Compile this callback to be callable from Objective-C
fun compile_callback_to_objc(mmodule: MModule, mainmodule: MModule) do end
src/ffi/objc.nit:186,2--187,75
redef fun compile_callback_to_objc(mmodule, mainmodule)
do
var mproperty = mproperty
assert mproperty isa MMethod
var objc_signature = mproperty.build_csignature(recv_mtype, mainmodule, null, short_signature, from_objc_call_context)
var ccall = mproperty.build_ccall(recv_mtype, mainmodule, null, long_signature, from_objc_call_context, null)
var fc = new CFunction(objc_signature)
fc.exprs.add ccall
mmodule.objc_file.add_local_function fc
end
src/ffi/objc.nit:191,2--201,4