nitc :: ToCCallContext :: defaultinit
nitc $ ToCCallContext :: SELF
Type of this instance, automatically specialized in every classnitc $ ToCCallContext :: name_mtype
Which C name to use for typemtype
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: CallContext :: defaultinit
nitc :: ToCCallContext :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
nitc :: CallContext :: name_mtype
Which C name to use for typemtype
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: CallContext
Describes the context of the code to be generated bybuild_ccall
and build_csignature
# Context when calling user C code from generated code
class ToCCallContext
super CallContext
# TODO: private init because singleton instance (see `to_c_call_context`)
redef fun name_mtype(mtype)
do
if mtype isa MClassType and mtype.mclass.kind == extern_kind then return "void *"
return mtype.cname
end
end
src/ffi/light_c.nit:100,1--111,3