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 7:17

>>3
#defines are computed at compile time. So are enums. Probably const too, if the expression is actually constant.

>>1
Use whatever the fuck you want. The performance difference will likely be zero.

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