develooper Front page | perl.perl5.porters | Postings from September 2021

Re: defined $a, where $a is actually a HASH

Thread Previous | Thread Next
From:
Paul "LeoNerd" Evans
Date:
September 8, 2021 12:16
Subject:
Re: defined $a, where $a is actually a HASH
Message ID:
20210908131641.6a7ab0e5@shy.leonerd.org.uk
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.

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk      |  https://metacpan.org/author/PEVANS
http://www.leonerd.org.uk/  |  https://www.tindie.com/stores/leonerd/

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