I have a number of variables (about 128) that I want to be able to refer to by name, and also to be able to send via the UART (which would be much easier if they were in an array).
My first thought - ENUM the variable names, and use them as the indices of the array. All went well, until I was debugging the program (in Eclipse, Renesas's version of Eclipse "E2Studio" to be precise)
The usual "click on the variable name to see the value" no longer works, it just tells me that it is an ENUM and doesn't even give the number that it was enumerated to. So debugging quickly becomes next-to-impossible.
So this is an Eclipse problem, not a C problem, but is there a way around it? Or is there a better way of giving variables both names and indices?
My first thought - ENUM the variable names, and use them as the indices of the array. All went well, until I was debugging the program (in Eclipse, Renesas's version of Eclipse "E2Studio" to be precise)
The usual "click on the variable name to see the value" no longer works, it just tells me that it is an ENUM and doesn't even give the number that it was enumerated to. So debugging quickly becomes next-to-impossible.
So this is an Eclipse problem, not a C problem, but is there a way around it? Or is there a better way of giving variables both names and indices?