The point is to avoid contamination between must-be-compiled-separately files
# Force the creation of a new file
# The point is to avoid contamination between must-be-compiled-separately files
fun new_file(name: String): CodeFile
do
if modelbuilder.toolcontext.opt_group_c_files.value then
if self.files.is_empty then
var f = new CodeFile(mainmodule.c_name)
self.files.add(f)
end
return self.files.first
end
var f = new CodeFile(name)
self.files.add(f)
return f
end
src/compiler/abstract_compiler.nit:653,2--667,4