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.eduThread Previous | Thread Next