www.digitalmars.com         C & C++   DMDScript  

c++ - dots in #define

reply Roland <rv ronetech.com> writes:
this macro:

#define .x    .coord[0]

does not compile: identifier expected.

is it because there is something wrong with my macro ?

(DM8.15, DM8.26: same)

thanks

roland
Apr 09 2002
parent reply "Walter" <walter digitalmars.com> writes:
"Roland" <rv ronetech.com> wrote in message
news:3CB342E1.88D5CED ronetech.com...
 #define .x    .coord[0]
 does not compile: identifier expected.
 is it because there is something wrong with my macro ?

Yes. The . in front of the x causes the error.
Apr 09 2002
parent reply Roland <rv ronetech.com> writes:
Walter a écrit :

 "Roland" <rv ronetech.com> wrote in message
 news:3CB342E1.88D5CED ronetech.com...
 #define .x    .coord[0]
 does not compile: identifier expected.
 is it because there is something wrong with my macro ?

Yes. The . in front of the x causes the error.

thanks it seem i need to go back to school please don't say anybody i asked such a stupid question roland
Apr 10 2002
parent reply "Walter" <walter digitalmars.com> writes:
"Roland" <rv ronetech.com> wrote in message
news:3CB3E67F.B8A747D2 ronetech.com...
 please don't say anybody i asked such a stupid question

Your secret is safe with us. <g>
Apr 11 2002
parent Jan Knepper <jan smartsoft.cc> writes:
Sure is! <g>

Walter wrote:

 "Roland" <rv ronetech.com> wrote in message
 news:3CB3E67F.B8A747D2 ronetech.com...
 please don't say anybody i asked such a stupid question

Your secret is safe with us. <g>

Apr 11 2002