Quote:
|
Originally Posted by probizzle
I've been told, and have deduced from compiler errors that #defines are essentially copy-paste definitions for the compiler.
Am I correct?
|
You're correct, but you're not quite going far enough. In every C compiler I've studied, #defines are handled by a preprocessor. They take effect before the actual compiler ever sees the text in the first place.