diff options
author | rtk0c <[email protected]> | 2022-05-29 21:57:53 -0700 |
---|---|---|
committer | rtk0c <[email protected]> | 2022-05-29 21:57:53 -0700 |
commit | 6f29abe5571eb68207986bdadb97b207264ac958 (patch) | |
tree | e30d5d36e550e8f08cc832f905c97cbeba3515aa /buildtools/codegen/CodegenOutput.inl | |
parent | 5112858f9a4adcf76240bcddad19179a5c56d4f3 (diff) |
Changeset: 49 Convert codegen output to use template specialization
Diffstat (limited to 'buildtools/codegen/CodegenOutput.inl')
-rw-r--r-- | buildtools/codegen/CodegenOutput.inl | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/buildtools/codegen/CodegenOutput.inl b/buildtools/codegen/CodegenOutput.inl index d1f2e50..edd9abc 100644 --- a/buildtools/codegen/CodegenOutput.inl +++ b/buildtools/codegen/CodegenOutput.inl @@ -38,9 +38,8 @@ public: std::move(other.mOutFunctions.begin(), other.mOutFunctions.end(), std::back_inserter(this->mOutFunctions)); } - void Write(FILE* file) { + void Write(FILE* file) const { for (auto& thing : mOutThings) { - WRITE_LIT(file, "// Output thing\n"); fwrite(thing.text.c_str(), sizeof(char), thing.text.size(), file); WRITE_LIT(file, "\n"); } |