Re: pre-processor string replacement






#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.

.



Relevant Pages

  • Re: pre-processor string replacement
    ... Ian Collins. ... i expect first statement to replace status of second statement with ... In the first example you are redefining status (your compiler ...
    (comp.lang.c)
  • Re: [PHP] Re: whats the difference in the following code?
    ... In the first statement $search would either be set to $_GET ... whereas in the second statement $search would only ... or an empty string if it does not. ... Application and Templating Framework for PHP ...
    (php.general)
  • Re: [PHP] Re: whats the difference in the following code?
    ... In the first statement $search would either be set to $_GET ... whereas in the second statement $search would only ... or an empty string if it does not. ...
    (php.general)
  • Re: pre-processor string replacement
    ... Ian Collins. ... i expect first statement to replace status of second statement with ... --Brian Kernighan ...
    (comp.lang.c)
  • Re: Exe Weirdness
    ... >> Shouldn't the first argument of the second statement be fileYear and ... >> currCDKFile? ... the first statement is having no effect. ... > Still doesn't explain the mysterious disappearing 'Invalid Property' ...
    (microsoft.public.vb.general.discussion)