Chapter 6: C Functions and Program Structures
the #define
s only the first time it sees the
attaching the
t uses CylonKillerRobot.h
n ifndef
rocessor will only use that header’s data
r data in more than once you may get a lot
ultiple declarations.
#endif
The ifndef means ‘if not defined’ so that the preprocessor will use
SuprMicX = 8 and #include <SuprMic
This prevents the preprocessor from
.h> line
#ifndef SuprMicX line.
contents of SuprMic.h in each file tha
As a ma f ard practice, always begin a header file with a #
statement and a
tter o stand
#define so that the prep
once in a project. If you put the heade
of compiler errors about m