…because each use of the macros has to have a unique number, using the line number is the easiest way of doing this. The generated numbers are used as ‘cases’ in a switch statement so need all be unique.
As an aside - I tried replying to your email but it bounced. I have some TMS470 code I can send but it is based on an old version and I have not tested it myself. I will need a non SourceForge address if you want me to send it. Do not post email addresses in this forum however.