summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'base.h')
-rw-r--r--base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/base.h b/base.h
index 5ba03bc..26e874e 100644
--- a/base.h
+++ b/base.h
@@ -159,10 +159,13 @@ static void print(char const *fmt, ...) {
va_end(args);
OutputDebugStringA(buf);
}
+#define eprint print
#else
#define print printf
+#define eprint(...) fprintf(stderr, __VA_ARGS__)
#endif
#define println(...) print(__VA_ARGS__), print("\n")
+#define eprintln(...) eprint(__VA_ARGS__), eprint("\n")
#if DEBUG
#define debug_print print