Is it possible to create a macro that count lines with the option to the macro value "in advance" for example:
START_COUNT_MACRO
CMD1
CMD2
CMD3 (COUNTER_VALUE) // needs to be 5 for this example
CMD4
CMD5
END_COUNT_MACRO
the number of CMD
commands can change. since it's an ongoing development, and also will be easier for maintenance since you don't need to update the Counter value each time.
I tried using this Count source file lines using macros? solution, but it couldn't be done since it define variables that don't exist when evaluating CMD3
. Do you know another trick that could be used to help me?