Thread
:
#define's scope?
View Single Post
#
2
24-01-2008, 14:04
Andrew Schreiber
Joining the 900 Meme Team
FRC #0079
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,060
Re: #define's scope?
#define is a preprocessor command, the scope is through whatever file(s) you include it in. Least that is how it works if you have them in .h files. If your #define is in a .c file it is global to the file. Hope this helps.
Andrew Schreiber
View Public Profile
Find all posts by Andrew Schreiber
Find CD-Media Photos by Andrew Schreiber
Find CD-Media Papers by Andrew Schreiber