From mboxrd@z Thu Jan 1 00:00:00 1970 From: Enache Adrian To: 9fans@cse.psu.edu Message-ID: <20030915004901.GA1290@ratsnest.hole> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: [9fans] plan9's C compiler and // comments Date: Mon, 15 Sep 2003 03:49:01 +0300 Topicbox-Message-UUID: 35d35838-eacc-11e9-9e20-41e7f4b1d025 The C compiler accepts '//..' C++ -like comments, but not in '#define' directives. ----------------------- #include #include // this one OK #ifndef FOO #define EXITS "wow!" // this won't work #endif // this one OK too void main() { exits(EXITS); } ----------------------- Is this deliberate behaviour ? (sorry if it's already fixed, my plan9 is a bit out of date). Thanks, Adi