which is better
#1

#define DIALOG_TEST 0
.......

or
enum
{
DIALOG_TEST
}
Reply
#2

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.
Reply
#3

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).
Reply
#4

Usually dialogs are sorted... Enum is better.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)