nitc :: CallContext
build_ccall
and build_csignature
nitc :: CallContext :: defaultinit
nitc :: CallContext :: name_mtype
Which C name to use for typemtype
nitc $ CallContext :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
core :: Object :: defaultinit
nitc :: CallContext :: 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).
# Describes the context of the code to be generated by `build_ccall` and `build_csignature`
class CallContext
# Which C name to use for type `mtype`
fun name_mtype(mtype: MType): String do return mtype.cname_blind
# How to cast a returned C variable named `name` of type `mtype`
fun cast_from(mtype: MType, name: String): String do return name
# How to cast a C argument named `name` of type `mtype`
fun cast_to(mtype: MType, name: String): String do return name
end
src/nitni/nitni_utilities.nit:131,1--141,3