About Store Forum Documentation Contact



Post Reply 
Editor: order of code in generated .h files
Author Message
tiagolapa Offline
Member

Post: #1
Editor: order of code in generated .h files
Hello

How can I set the order of codes in generated header files?

I have 2 enums:

Code:
enum B_ENUM
{
    B_1 = 0,
    B_2,
    B_3
};

enum A_ENUM
{
    A_1 = B_1,
    A_2 = B_2,
    A_3 = B_3,
    A_4,
    A_5
};

The problem is it gives me "undeclared identifier" at compilation.

I inspect the error and opens "@@headers.h (read only)" and can see it puts the A_ENUM before B_ENUM, because of alphabetical order.

If i change B_ENUM name to ZB_ENUM, then is good, but bad for my enum names design.

Thank you
05-11-2015 09:39 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Editor: order of code in generated .h files
Hello,

you could try making a c++ .h header file and include it to your application:
http://www.esenthel.com/?id=doc#Application
05-11-2015 10:00 PM
Find all posts by this user Quote this message in a reply
tiagolapa Offline
Member

Post: #3
RE: Editor: order of code in generated .h files
(05-11-2015 10:00 PM)Esenthel Wrote:  Hello,

you could try making a c++ .h header file and include it to your application:
http://www.esenthel.com/?id=doc#Application

It works. Thank you
05-12-2015 06:06 AM
Find all posts by this user Quote this message in a reply
Post Reply