develooper Front page | perl.perl5.porters | Postings from August 2010

Re: [PATCH] Configure probe for static inline (version 2)

Thread Previous | Thread Next
From:
Andy Dougherty
Date:
August 2, 2010 06:35
Subject:
Re: [PATCH] Configure probe for static inline (version 2)
Message ID:
alpine.DEB.2.00.1008020930070.10487@fractal.phys.lafayette.edu

On Mon, 2 Aug 2010, Nicholas Clark wrote:

> I'm a bit slow on reporting that a week or two ago I tried the most simple
> "simplify things by converting alternate macro definitions to one inline
> function" that I could find:

> ++PERL_STATIC_INLINE bool SvTRUEx(SV *const sv) { return SvTRUE(sv); }

> and, well, it fails with a most beautiful explosion of cryptic compiler errors.
> Because, it turns out, at this point, I'm attempting to define (and therefore
> compile) SvTRUEx in terms of SvTRUE(), so *that* is textually expanded right
> there and then, and expected to work.

My first forays (for testing purposes) were with SvREFCNT_inc(sv) and 
friends, and they didn't end up triggering any such problems.  I hope you 
were just unlucky and happened to pick a particularly gnarly case by 
accident.

-- 
    Andy Dougherty		doughera@lafayette.edu


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About