Fix relative import of own header file
This commit is contained in:
parent
80a7472545
commit
383586fdcc
2
tomo.c
2
tomo.c
@ -214,7 +214,7 @@ int transpile(const char *filename, bool force_retranspile)
|
||||
CORD_put(module.header, out);
|
||||
pclose(out);
|
||||
out = popen(heap_strf("%s | bat -P --file-name=%s.c", autofmt, f->filename), "w");
|
||||
CORD_put(CORD_all("#include \"", f->filename, "\"\n\n", module.c_file), out);
|
||||
CORD_put(CORD_all("#include \"", module.module_name, ".tm.h\"\n\n", module.c_file), out);
|
||||
pclose(out);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user