Re: C directives
- From: Christian Kandeler <christian.kandeler@xxxxxxxxxxxxxx>
- Date: Thu, 30 Jun 2005 08:46:19 +0200
Jonathan Bartlett wrote:
> Perhaps the point is that you can have a file which handles all of your
> defines, just by including the right files and doing
>
> #define __KERNEL_DEF
>
> and including the right files. This way when someone adds a variable
> definition, they only have to add it into a single header file, rather
> than also having to add it to a regular source file.
But then you'd have to make sure to only include the header file in one
particular source file, so you could just as well define the variables
there.
Christian
.
- References:
- C directives
- From: vib
- Re: C directives
- From: Jonathan Bartlett
- C directives
- Prev by Date: Re: reading a line through scanf
- Next by Date: Re: reading a line through scanf
- Previous by thread: Re: C directives
- Next by thread: Reading Lines with Fgets and a bit of C++ {Novice Programmer}
- Index(es):
Relevant Pages
|