deduplicated 'printf.s', over 200 bytes saved in BASIC segment

This commit is contained in:
FeralChild64 committed 2019-09-26 20:50:46 +02:00
1 parent 94b8e0dc29
commit 332438145c
4 files changed
+32 -201

No files matched your search

+3
View File
@@ -524,6 +524,7 @@ void compileSegment()
", outBin=\"" << CMD_outFile << "\", fill]" <<
"\n";
outFile << "#define SEGMENT_" << CMD_segName << "\n";
outFile << ".namespace " << CMD_segName << " {" << "\n\n";
// Write files which only contain definitions (no routines)
@@ -548,6 +549,8 @@ void compileSegment()
outFile << "\n";
}
outFile << "\n\n" << "} // namespace" << "\n";
if (!outFile.good()) ERROR(std::string("error writing temporary file '") + outFileNamePath + "'");
outFile.close();