From owner-freebsd-current Fri Jul 7 9:57:35 2000 Delivered-To: freebsd-current@freebsd.org Received: from server.baldwin.cx (server.geekhouse.net [64.81.6.52]) by hub.freebsd.org (Postfix) with ESMTP id B7B9837BF06; Fri, 7 Jul 2000 09:57:28 -0700 (PDT) (envelope-from john@baldwin.cx) Received: from john.baldwin.cx (root@john.baldwin.cx [192.168.1.18]) by server.baldwin.cx (8.9.3/8.9.3) with ESMTP id JAA85127; Fri, 7 Jul 2000 09:57:22 -0700 (PDT) (envelope-from john@baldwin.cx) Received: (from john@localhost) by john.baldwin.cx (8.9.3/8.9.3) id JAA47636; Fri, 7 Jul 2000 09:58:45 -0700 (PDT) (envelope-from john) Message-Id: <200007071658.JAA47636@john.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <9846.962964818@coconut.itojun.org> Date: Fri, 07 Jul 2000 09:58:44 -0700 (PDT) From: John Baldwin To: itojun@iijlab.net Subject: Re: _DIAGASSERT in libusb & libutil Cc: n_hibma@FreeBSD.org, FreeBSD Current , Charles Anderson Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 07-Jul-00 itojun@iijlab.net wrote: > >>It's a macro that NetBSD uses just to be different from the rest of the >>known >>world which uses the assert() macro from /usr/include/assert.h. > > _DIAGASSERT() has its history and reasons (there was some proposal > on it and _DIAGASSERT() implements that). it is not just to be > different. I admit it is now equivalent to assert(). netbsd may need > to clean them up... It is slightly different in truth, because assert() is conditionally defined on NDEBUG, whereas _DIAGASSERT() is conditionally defined on DIAGNOSTICS. Also, it calls __diagassert() rather than __assert(), although both functions take the same arguments, so I suppose it could be performing additional behavior of some sort. > itojun -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message