Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

enum, #define, const

Name: Anonymous 2009-03-28 7:01

For storing integers with bitwise operands inside their declaration, which should I use? Performance wise I think that an enumeration works slightly faster, however what's the standard?

Name: Anonymous 2009-03-28 13:41

>>7
No, but you still shouldn't. People should use the pre-processor as little as possible, because

   a) it changes the lexical structure of your program and
   b) if you have an error and you go into the debugger, debugging the replaced text will be more difficult (that is, if you used a macro function).

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List