]> git.saurik.com Git - bison.git/blobdiff - data/m4sugar/m4sugar.m4
* data/glr.cc: New.
[bison.git] / data / m4sugar / m4sugar.m4
index 3e2f1769008f126f351229f18d1a2a9479cb7565..225b7c7a5494b4b1e9388e1e161833d19052a129 100644 (file)
@@ -1515,6 +1515,12 @@ m4_define([m4_append],
 [m4_define([$1],
           m4_ifdef([$1], [m4_defn([$1])$3])[$2])])
 
+# m4_prepend(MACRO-NAME, STRING, [SEPARATOR])
+# -------------------------------------------
+# Same, but prepend.
+m4_define([m4_prepend],
+[m4_define([$1],
+          [$2]m4_ifdef([$1], [$3[]m4_defn([$1])]))])
 
 # m4_append_uniq(MACRO-NAME, STRING, [SEPARATOR])
 # -----------------------------------------------