Posts: 270
Threads: 84
Joined: Sep 2016
Reputation:
0
#define DIALOG_TEST 0
.......
or
enum
{
DIALOG_TEST
}
Posts: 10,066
Threads: 38
Joined: Sep 2007
Reputation:
0
Just use the enum. Don't even bother comparing speeds because the difference will probably only be noticeable after a million iterations, if at all.
Posts: 175
Threads: 1
Joined: Apr 2017
Reputation:
0
Neither. You should use '#define's if you'd like no character limit for the elements' name. If that limit doesn't bother you however, then the enum would be your perfect choice (you won't need to manually define their values).
Posts: 118
Threads: 10
Joined: May 2013
Usually dialogs are sorted... Enum is better.