diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/seq_compiler.cc | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/tools/seq_compiler.cc b/tools/seq_compiler.cc index 8da4e4e..fabb43f 100644 --- a/tools/seq_compiler.cc +++ b/tools/seq_compiler.cc @@ -78,14 +78,15 @@ int main(int argc, char *argv[]) { << ": EFFECT requires <Class> <start> <end> <priority>\n"; return 1; } - + // Capture remaining args std::string extra_args; std::getline(ss, extra_args); // Read rest of line - // Remove leading whitespace from getline if any (getline reads the space after priority) + // Remove leading whitespace from getline if any (getline reads the space + // after priority) extra_args = trim(extra_args); if (!extra_args.empty()) { - extra_args = ", " + extra_args; + extra_args = ", " + extra_args; } current_seq->effects.push_back( @@ -114,8 +115,9 @@ int main(int argc, char *argv[]) { out_file << " auto seq = std::make_shared<Sequence>();\n"; for (const auto &eff : seq.effects) { out_file << " seq->add_effect(std::make_shared<" << eff.class_name - << ">(device, queue, format" << eff.extra_args << "), " - << eff.start << "f, " << eff.end << "f, " << eff.priority << ");\n"; + << ">(device, queue, format" << eff.extra_args << "), " + << eff.start << "f, " << eff.end << "f, " << eff.priority + << ");\n"; } out_file << " main_seq.add_sequence(seq, " << seq.start_time << "f, " << seq.priority << ");\n"; @@ -123,8 +125,9 @@ int main(int argc, char *argv[]) { } out_file << "}\n"; - - std::cout << "Successfully generated timeline with " << sequences.size() << " sequences.\n"; + + std::cout << "Successfully generated timeline with " << sequences.size() + << " sequences.\n"; return 0; } |
