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

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

Thread Previous | Thread Next
Andy Dougherty
August 2, 2010 06:35
Re: [PATCH] Configure probe for static inline (version 2)
Message ID:

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 

    Andy Dougherty

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About