Article View: net.lang.c++
Article #163Re: System V preprocessor problem with <generic.h>
From: KW Heuer
Date: Wed, 30 Apr 1986 19:50
Date: Wed, 30 Apr 1986 19:50
17 lines
1140 bytes
1140 bytes
In article <3597@sun.uucp> sun!guy (Guy Harris) writes: >> #define name2(a,b) a/**/b >It has, however, two problems: > > 1) If you run your code through "lint", it won't work I tried this example with "cpp -C" and it worked fine. I'd guess that cpp strips all comments in preprocessor directives reg Cdless of "-C". > 2) It is not a guaranteed property of the C language, but a > quirk of the implementation, so it will not work in > general. Agreed. Any application that depends on being able to do this is treading on thin ice. Karl W. Z. Heuer (ihnp4!bentley!kwh), The Walking Lint
Technical Details
Message-ID:
<779@bentley.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!bentley!kwhReferences:
<3597@sun.uucp>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!bentley!kwh From: kwh@bentley.UUCP (KW Heuer) Newsgroups: net.lang.c++,net.lang.c Subject: Re: System V preprocessor problem with <generic.h> Message-ID: <779@bentley.UUCP> Date: Wed, 30-Apr-86 15:50:41 EDT Article-I.D.: bentley.779 Posted: Wed Apr 30 15:50:41 1986 Date-Received: Fri, 2-May-86 23:52:57 EDT References: <3597@sun.uucp> Organization: AT&T Bell Laboratories, Liberty Corner Lines: 17