summaryrefslogtreecommitdiff
path: root/base.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-24 13:59:43 -0500
committerpommicket <pommicket@gmail.com>2022-12-24 13:59:43 -0500
commit1793fa40528295306d1d790074fdd8f382e8bef3 (patch)
tree2acc72e0ff15c0c66e478ea88bce4039f89d0b0a /base.h
parenta68d59e180b8131197c6387a764a78403b06e069 (diff)
testing LSPs for other languages
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