How does including a .csv work in an enum?

Posted by Tommy on Stack Overflow See other posts from Stack Overflow or by Tommy
Published on 2010-06-01T19:04:11Z Indexed on 2010/06/01 19:13 UTC
Read the original article Hit count: 167

Filed under:
|
|
|
|
enum    ID                           // IDs
    {
    ID_HEADER          = 0,         // ID 0 = headers
    #include "DATA.CSV"
    ID_LIMIT
    };

I inherited some code here.....

Looking at "DATA.CSV" I see all the ID's used to populate the enum in column B, along with other data.

My question:
How does the enum know that it is using "column B" to retrieve it's members? There must be some other logic in the application yet I don't see it. What else should I look for?

Thanks.

© Stack Overflow or respective owner

Related posts about c

    Related posts about data-structures