[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: inlinable functions instead of macros
From: |
Sam Steingold |
Subject: |
Re: inlinable functions instead of macros |
Date: |
Mon, 20 Aug 2012 16:38:16 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
> * Stefan Monnier <address@hidden> [2012-08-17 19:48:50 -0400]:
>
> 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.
a simple solution is this:
inline void my_inlinable_function (....., char* file, int line) {....}
#deinfe my_inlinable_function(.....) (my_inlinable_function)(.....,FILE,LINE)
--
Sam Steingold (http://sds.podval.org/) on Ubuntu 12.04 (precise) X 11.0.11103000
http://www.childpsy.net/ http://pmw.org.il
http://www.PetitionOnline.com/tap12009/ http://dhimmi.com http://jihadwatch.org
A man paints with his brains and not with his hands.
Re: inlinable functions instead of macros, Richard Stallman, 2012/08/18
Re: inlinable functions instead of macros, Óscar Fuentes, 2012/08/18
Re: inlinable functions instead of macros, Florian Weimer, 2012/08/19
Re: inlinable functions instead of macros,
Sam Steingold <=