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

Why preprocessor is good

Name: Anonymous 2012-05-02 13:13

It saves memory. This is fucking retarded:

static const unsigned int SHIT_TIER 0x02

Superior:
#define GOD_TIER 0x02

Four bytes here and there start piling up; pretty soon you might as well have used Ruby.

Name: Anonymous 2012-05-02 15:10

>>1
Since it isn't volatile the compiler can (and unless you use the address, the compiler usually will) optimize it away and use the value 0x02 instead.

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