- Added support for an additional string comment to be added to the emitted header comment via the `emitHeaderComment()` method
This commit is contained in:
Tristan B. Velloza Kildaire 2022-12-11 17:55:18 +02:00
parent c37b85b781
commit 1f3bdd3279
1 changed files with 6 additions and 6 deletions

View File

@ -22,7 +22,7 @@ public final class DCodeEmitter : CodeEmitter
public override void emit()
{
// Emit header comment
emitHeaderComment("Hello this is an additional phrase added to the header");
emitHeaderComment(); // NOTE: We can pass a string with extra information to it if we want to
gprintln("Static allocations needed: "~to!(string)(walkLength(initQueue[])));
emitStaticAllocations(initQueue);
@ -40,16 +40,16 @@ public final class DCodeEmitter : CodeEmitter
* TLP compiler generated code
*
* Module name: `);
file.writeln(moduleName);
file.write(" * Output C file: ");
file.writeln(outputCFilename);
file.writeln(" */");
if(headerPhrase.length)
{
file.writeln(" *\n * "~headerPhrase);
}
file.writeln(" */");
}
/**