Re: pre-processor string replacement
- From: Ian Collins <ian-news@xxxxxxxxxxx>
- Date: Sun, 14 Jan 2007 21:17:21 +1300
sam_cit@xxxxxxxxxxx wrote:
I see. In the first example you are redefining status (your compiler
#define status "23"
#define status "44"
What did you expect to see?
--
Ian Collins.
i expect first statement to replace status of second statement with
23, so it would be
#define "23" "43"...
which isn't the case, so i though string replacement never happens in
pre-processor statement, however the second example i pointed proves
that understanding is not correct.
did warn you, didn't it?).
--
Ian Collins.
.
- Follow-Ups:
- Re: pre-processor string replacement
- From: sam_cit
- Re: pre-processor string replacement
- 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: regarding free
- Next by Date: Re: Multiple Inclusion of Standard Header Files
- Previous by thread: Re: pre-processor string replacement
- Next by thread: Re: pre-processor string replacement
- Index(es):
Relevant Pages
|