From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <6ed385438fec8d70c5b7096b65c092de@vitanuova.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] what's wrong with this? From: rog@vitanuova.com MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-pwgvuiglszkfhhloljnskddqyr" Date: Fri, 27 Sep 2002 16:36:41 +0100 Topicbox-Message-UUID: f6721068-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-pwgvuiglszkfhhloljnskddqyr Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit i always thought that: #define assert(x) if(x){}else _assert("x") was a bit dodgy... it's a good thing macros aren't used much in plan 9 otherwise someone would have been bitten. still it's better than the ## nastiness, i suppose. --upas-pwgvuiglszkfhhloljnskddqyr Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> Received: from punt-1.mail.demon.net by mailstore for rog@vitanuova.com id 1033135640:10:04408:54; Fri, 27 Sep 2002 14:07:20 GMT Received: from psuvax1.cse.psu.edu ([130.203.4.6]) by punt-1.mail.demon.net id aa1125576; 27 Sep 2002 14:07 GMT Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.23.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id EBC9C19A69; Fri, 27 Sep 2002 10:06:44 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from plan9.cs.bell-labs.com (ampl.com [204.178.31.2]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id AB7D219A5F for <9fans@cse.psu.edu>; Fri, 27 Sep 2002 10:05:45 -0400 (EDT) Message-ID: From: "Russ Cox" To: 9fans@cse.psu.edu Subject: Re: [9fans] what's wrong with this? MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Fri, 27 Sep 2002 10:05:43 -0400 The problem is that assert tries to include the text of what is being asserted, since the compiler doesn't provide preprocessor variables for the current file and line number. Russ --upas-pwgvuiglszkfhhloljnskddqyr--