3 * Copyright (C) 2012 by Larry Wall and others
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
8 * This file is a home for static inline functions that cannot go in other
9 * headers files, because they depend on proto.h (included after most other
10 * headers) or struct definitions.
12 * Each section names the header file that the functions "belong" to.
15 /* ------------------------------- sv.h ------------------------------- */
17 PERL_STATIC_INLINE SV *
18 S_SvREFCNT_inc(SV *sv)
24 PERL_STATIC_INLINE SV *
25 S_SvREFCNT_inc_NN(SV *sv)
30 PERL_STATIC_INLINE void
31 S_SvREFCNT_inc_void(SV *sv)
36 PERL_STATIC_INLINE void
37 S_SvREFCNT_dec(pTHX_ SV *sv)
41 if (--(SvREFCNT(sv)) == 0)
42 Perl_sv_free2(aTHX_ sv);