aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-07-02 17:16:29 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-07-02 17:16:29 -0700
commitef05d75b892c16d0aa0c082a7fab4e6361555e79 (patch)
tree55399c5ea189fedcd2fe4b5ec162acd287378daf
parentf0a0a18027fff48a94b82ef876c610d02652f44e (diff)
downloadcppawk-ef05d75b892c16d0aa0c082a7fab4e6361555e79.tar.gz
cppawk-ef05d75b892c16d0aa0c082a7fab4e6361555e79.tar.bz2
cppawk-ef05d75b892c16d0aa0c082a7fab4e6361555e79.zip
Don't pull in $0 into diagnostics by accident.
Reported by Paul A. Patience.
-rw-r--r--share/cppawk/include/base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/cppawk/include/base.h b/share/cppawk/include/base.h
index 4012d95..db14244 100644
--- a/share/cppawk/include/base.h
+++ b/share/cppawk/include/base.h
@@ -39,7 +39,7 @@
#define __g(name) __xcat(__, __xcat(name, __LINE__))
#define __gx(name, ext) __xcat(__, __xcat(name, __xcat(ext, __LINE__)))
-#define __error(...) { printf(__VA_ARGS__); print; exit 1 }
+#define __error(...) { printf(__VA_ARGS__); print ""; exit 1 }
#define __present(arg) ((arg) != "" || (arg) != 0)