09.04.2012, 17:12
#define just replaces COLOR with whatever is after the first space
it will replace COLOR the first way with 0xFF0000FF
the second way with (0xFF0000FF)
it cant hurt to have the extra () but the first way could be bugged depending on your code.
so when your writing code imagine what it would look like both ways
only then will you see what the difference is.
it will replace COLOR the first way with 0xFF0000FF
the second way with (0xFF0000FF)
it cant hurt to have the extra () but the first way could be bugged depending on your code.
so when your writing code imagine what it would look like both ways
only then will you see what the difference is.