redef class MMModule
# Compile the sep or glob files (of the current module only)
- private fun compile_separate_module(cprogram: CProgram)
+ fun compile_separate_module(cprogram: CProgram)
do
var tc = cprogram.program.tc
tc.info("Generating C code for module: {full_name}",2)
var v = new CompilerVisitor(self, cprogram)
v.add_decl("#include <nit_common.h>")
- var native_name = location.file.strip_extension(".nit")
+ var native_name = location.file.filename.strip_extension(".nit")
var native_header = native_name + "_nit.h"
if native_header.file_exists then
v.add_decl("#include <{native_header.basename("")}>")