Quote:
|
Originally Posted by gnormhurst
Nope. They don't go farther than the source files.
And I recently was shown (here) that the difference between
Code:
#define BEGIN 0
#define MIDDLE 1
#define END 2
and
Code:
enum
{
BEGIN,
MIDDLE,
END
}
is that the enum{} actually allocates integer storage, but the #defines are just literal constants. I suppose that means that #defines use less RAM than enum{}.
|
I've been told, and have deduced from compiler errors that #defines are essentially copy-paste definitions for the compiler.
Am I correct?