nitc :: CFunction :: _signature
nitc :: CFunction :: defaultinit
nitc :: CFunction :: signature=
nitc :: CFunction :: _signature
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: CFunction :: 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.
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 :: CFunction :: signature=
# Accumulates C code related to a specific function
class CFunction
var signature : String
var decls = new Template
var exprs = new Template
fun to_writer: Template
do
var w = new Template
w.add(signature)
w.add("\n\{\n")
w.add(decls)
w.add("\n")
w.add(exprs)
w.add("\}\n")
return w
end
end
src/c_tools.nit:84,1--104,3