diff options
author | Yves Orton <demerphq@gmail.com> | 2023-03-16 18:40:35 +0100 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-03-18 20:57:59 +0800 |
commit | 6dd040ff2f6f01a817731d112756188ddb541a18 (patch) | |
tree | a78475aea0b7c8ea6e0e05afd8a11db1ea6a2823 /pod | |
parent | e2e830cd93e16aedc6c6225069eeb7bdfc431a43 (diff) | |
download | perl-6dd040ff2f6f01a817731d112756188ddb541a18.tar.gz |
sv.h - add SvREFCNT_dec_set_NULL()
and also SvREFCNT_dec_ret_NULL() which is used to implement
SvREFCNT_dec_set_NULL(). The set_NULL() macro is intended to
be used to replace code like this:
if (sv) {
SvREFCNT_dec_NN(sv);
sv = NULL;
}
The function form just facilitates it, and can be used in situations
where returning NULL after decrementing a refcount would be reduce
code complexity.
Diffstat (limited to 'pod')
0 files changed, 0 insertions, 0 deletions