X-Git-Url: https://git.saurik.com/bison.git/blobdiff_plain/5059b5c88759627b92f312e65e8a408607541272..422494834c997d34b85f31f22bcc54f8859876c4:/data/m4sugar/m4sugar.m4 diff --git a/data/m4sugar/m4sugar.m4 b/data/m4sugar/m4sugar.m4 index 3e2f1769..225b7c7a 100644 --- a/data/m4sugar/m4sugar.m4 +++ b/data/m4sugar/m4sugar.m4 @@ -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]) # -----------------------------------------------