From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Florian Weimer Newsgroups: gmane.emacs.devel Subject: Re: inlinable functions instead of macros Date: Sun, 19 Aug 2012 19:28:07 +0200 Message-ID: <87sjbizt94.fsf@mid.deneb.enyo.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1345397297 20233 80.91.229.3 (19 Aug 2012 17:28:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 19 Aug 2012 17:28:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 19 19:28:17 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T39IP-0007Pv-9W for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2012 19:28:17 +0200 Original-Received: from localhost ([::1]:33996 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T39IN-00079k-Uh for ged-emacs-devel@m.gmane.org; Sun, 19 Aug 2012 13:28:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T39IK-00079V-R6 for emacs-devel@gnu.org; Sun, 19 Aug 2012 13:28:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T39IJ-0001FB-NJ for emacs-devel@gnu.org; Sun, 19 Aug 2012 13:28:12 -0400 Original-Received: from ka.mail.enyo.de ([87.106.162.201]:45965) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T39IJ-0001F1-FS for emacs-devel@gnu.org; Sun, 19 Aug 2012 13:28:11 -0400 Original-Received: from [172.17.135.4] (helo=deneb.enyo.de) by ka.mail.enyo.de with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) id 1T39IG-000467-39; Sun, 19 Aug 2012 19:28:08 +0200 Original-Received: from fw by deneb.enyo.de with local (Exim 4.80) (envelope-from ) id 1T39IF-0003yD-Qp; Sun, 19 Aug 2012 19:28:07 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 17 Aug 2012 19:48:50 -0400") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 87.106.162.201 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152682 Archived-At: * Stefan Monnier: > While inlinable functions are much cleaner than macros, they have > a very serious downside: you just end up with > > lisp.h:2416: Emacs fatal error: assertion failed: found == !EQ (blv->defcell, blv->valcell) > > I.e. the file&line info is always the same rather than giving the > file&line where the inlinable function was called. Coincidentally, there's a related discussion on the gcc mailing list: The approach we settled for is C++-specific, though.