Tweaked TOY_EXPORT omitting extra repl stuff

This commit is contained in:
2023-03-15 04:56:26 +11:00
parent f2f8aed23a
commit a04d2c4816
4 changed files with 17 additions and 4 deletions

View File

@@ -12,12 +12,17 @@
#include <string.h>
static void printWrapper(const char* output) {
//allow for disabling of newlines in the repl
#ifndef TOY_EXPORT
if (Toy_commandLine.enablePrintNewline) {
printf("%s\n", output);
}
else {
printf("%s", output);
}
#else
printf("%s\n", output);
#endif
}
static void assertWrapper(const char* output) {