New answers tagged

1

You can do that by having two macros, a counter holding the current value, and a count macro that expands to the value and redefines `counter'. For example, it could look like this define(`counter',`0')dnl define(`count',`define(`counter',eval(counter+1))counter')dnl When the count macro is used, it firstly redefines counter to hold its next value (adding ...



Top 50 recent answers are included