diff options
Diffstat (limited to 'examples/wrapfifo.m4')
-rw-r--r-- | examples/wrapfifo.m4 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/wrapfifo.m4 b/examples/wrapfifo.m4 new file mode 100644 index 0000000..95ff87a --- /dev/null +++ b/examples/wrapfifo.m4 @@ -0,0 +1,10 @@ +dnl Redefine m4wrap to have FIFO semantics. +define(`_m4wrap_level', `0')dnl +define(`m4wrap', +`ifdef(`m4wrap'_m4wrap_level, + `define(`m4wrap'_m4wrap_level, + defn(`m4wrap'_m4wrap_level)`$1')', + `builtin(`m4wrap', `define(`_m4wrap_level', + incr(_m4wrap_level))dnl +m4wrap'_m4wrap_level)dnl +define(`m4wrap'_m4wrap_level, `$1')')')dnl |