blob: 87918bd5b1138259940cd296486715f43cc5644f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# NOTE: Derived from blib\lib\Storable.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Storable;
#line 330 "blib\lib\Storable.pm (autosplit into blib\lib\auto\Storable\_freeze.al)"
# Internal freeze routine
sub _freeze {
my $xsptr = shift;
my $self = shift;
logcroak "not a reference" unless ref($self);
logcroak "too many arguments" unless @_ == 0; # No @foo in arglist
my $da = $@; # Don't mess if called from exception handler
my $ret;
# Call C routine mstore or net_mstore, depending on network order
eval { $ret = &$xsptr($self) };
logcroak $@ if $@ =~ s/\.?\n$/,/;
$@ = $da;
return $ret ? $ret : undef;
}
# end of Storable::_freeze
1;
|