summaryrefslogtreecommitdiff
path: root/examples/wrapfifo.m4
blob: 95ff87a0e3e006e323ac495502805fde20f6e619 (plain)
1
2
3
4
5
6
7
8
9
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