Skip to content

Commit

Permalink
euhhhhh
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Jan 4, 2025
1 parent bbde436 commit bd4d60e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,17 @@ private void visit(ScalarLayout scalar, PrintStream ps, StructNamePrefixer prefi
scalar.options.offset,
scalar.options.digits
);

ps.print("\tsdWrite" + scalar.type.size + "(outBuffer, ");
ps.print(prefixer.get(scalar.name));

if (idx != -1) {
ps.print('[');
ps.print(idx - 1);
ps.print(']');
}

ps.println(");");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ public SdLogWriter(String outputFile) throws FileNotFoundException {

public SdLogWriter(PrintStream ps) {
this.ps = ps;
ps.println("static void writeLogEntry(Writer& outBuffer) {");
}

public void endFile() {
ps.println("}");
ps.println("static const unsigned char binaryLogHeader[] = {");

// magic number file identifier
Expand Down

0 comments on commit bd4d60e

Please sign in to comment.