1 ################################################################################
5 ## $Date: 2009/06/12 12:29:57 +0200 $
7 ################################################################################
9 ## Version 3.x, Copyright (C) 2004-2009, Marcus Holland-Moritz.
10 ## Version 2.x, Copyright (C) 2001, Paul Marquess.
11 ## Version 1.x, Copyright (C) 1999, Kenneth Albanowski.
13 ## This program is free software; you can redistribute it and/or
14 ## modify it under the same terms as Perl itself.
16 ################################################################################
26 #if { NEED newSV_type }
29 newSV_type(pTHX_ svtype const t)
31 SV* const sv = newSV(0);
42 #define NEED_newSV_type
52 sv = newSV_type(SVt_NULL);
53 if (SvTYPE(sv) == SVt_NULL)
59 sv = newSV_type(SVt_PVIV);
60 if (SvTYPE(sv) == SVt_PVIV)
66 sv = newSV_type(SVt_PVHV);
67 if (SvTYPE(sv) == SVt_PVHV)
73 sv = newSV_type(SVt_PVAV);
74 if (SvTYPE(sv) == SVt_PVAV)
85 ok(Devel::PPPort::newSV_type(), 4);