defining a comment?

T. William Wells bill at proxftl.UUCP
Sat Sep 17 13:21:05 AEST 1988


In article <13544 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
: >#define STARTCOM /*
:
: This is rather dubious.

We use this construction in our code, it is always in something
like:

#define XYZZY /* comment ....
		 more comment */

We have never had any complaints about it.

I'd say that

#define STARTCOM /*

just defines STARTCOM as nothing and comments out anything
following the #define.

I'd also say that any compiler that didn't do this is broken.

---
Bill
novavax!proxftl!bill



More information about the Comp.lang.c mailing list