View Single Post
Old November 13, 2016, 22:23   #4
Join Date: Aug 2009
Location: Madison, Wisconsin, US
Posts: 3,001
fizzix is on a distinguished road
Originally Posted by Pete Mack View Post
Neither is better. When you want an enum, you must use a .h file, at which point it's better to put all associated info in the same place. Same holds for generated code.
When you want pure data, of course a data file is better
Why can't you get an enum out of the data file? It would be something like this:

Read through file once and catalog the number of functions of different types
Make the enumerated list
Read through again and get the data
fizzix is offline   Reply With Quote