Mailing List Archive

clobbered C stuff WAS Re: defined $a, where $a is actually a HASH
> On Sep 8, 2021, at 8:16 AM, Paul LeoNerd Evans <leonerd@leonerd.org.uk> wrote:
>
> On Wed, 8 Sep 2021 09:56:47 +0000
> Nicholas Clark <nick@ccl4.org> wrote:
>
>> +#ifdef DEBUGGING
>> + assert(SvTYPE(sv) != SVt_PVAV);
>> + assert(SvTYPE(sv) != SVt_PVHV);
>> +#endif
>
> (as per IRC): Pretty sure you don't need to #ifdef that, because
> assert() does nothing on non-DEBUGGING builds anyway.

Is there a list somewhere of standard C interfaces that Perl’s API clobbers?

This one in particular caught me off-guard sometime back.

-FG