aboutsummaryrefslogtreecommitdiffhomepage
path: root/macros.m4
diff options
context:
space:
mode:
Diffstat (limited to 'macros.m4')
-rw-r--r--macros.m44
1 files changed, 4 insertions, 0 deletions
diff --git a/macros.m4 b/macros.m4
new file mode 100644
index 0000000..068ff3e
--- /dev/null
+++ b/macros.m4
@@ -0,0 +1,4 @@
+define(`m4_len', defn(`len'))
+undefine(`len')
+define(`WRITE_HEADER',
+ `w.WriteHeader($1); ifelse(eval(m4_len($2) == 0), 0, fmt.Fprintln(w, $2);) return;')