[DGD]A problem with macros

Risto Karjalainen risto.karjalainen at pp1.inet.fi
Sun Nov 26 15:54:51 CET 2000


Erwin Harte wrote:
| What would probably cause the syntax error is when you _use_ the
| define, because (DGD) LPC does not automatically concatenate strings
| like this, if you really want this, try this:
|
|   #define FOO "foo\n" + \
|   "bar\n"

Ah, I forgot the '+' from my message, I have it on my source code listing =D
Luckily I already found out the reason for the error: I had saved the file
in DOS format and the linefeeds caused something weird to happen. When I
re-saved the file in UNIX-format, the error disappeared.

Regards,
Risto Karjalainen




List config page:  http://list.imaginary.com/mailman/listinfo/dgd



More information about the DGD mailing list