Re: pre-processor string replacement
- From: Mark McIntyre <markmcintyre@xxxxxxxxxxx>
- Date: Sun, 14 Jan 2007 09:34:24 +0000
On 14 Jan 2007 00:10:18 -0800, in comp.lang.c , sam_cit@xxxxxxxxxxx
wrote:
What did you expect to see?
#define status "23"
#define status "44"
--
Ian Collins.
i expect first statement to replace status of second statement with
23, so it would be
#define "23" "43"...
No, the preprocessor doesn't work like that. All you've done is
redefine status.
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
.
- References:
- pre-processor string replacement
- From: sam_cit
- Re: pre-processor string replacement
- From: Ian Collins
- Re: pre-processor string replacement
- From: sam_cit
- pre-processor string replacement
- Prev by Date: Re: When are unnecessary casts useful?
- Next by Date: Re: regarding free
- Previous by thread: Re: pre-processor string replacement
- Next by thread: Re: pre-processor string replacement
- Index(es):
Relevant Pages
|