mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Added -n option to diable print newline
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user