Added -n option to diable print newline

This commit is contained in:
2023-02-13 15:51:34 +00:00
parent 1ed114b80d
commit b55b8e879e
3 changed files with 15 additions and 2 deletions

View File

@@ -12,8 +12,12 @@
#include <string.h>
static void printWrapper(const char* output) {
printf("%s", output);
// printf("\n"); //default new line
if (Toy_commandLine.enablePrintNewline) {
printf("%s\n", output);
}
else {
printf("%s", output);
}
}
static void assertWrapper(const char* output) {