File-KDBX
view release on metacpan or search on metacpan
lib/File/KDBX/Util.pm view on Meta::CPAN
IS_LOADED:
{
local $@;
return $XS_LOADED if !$version;
return !!eval { File::KDBX::XS->VERSION($version); 1 };
}
}
sub assert(&) { ## no critic (ProhibitSubroutinePrototypes)
return if !DEBUG;
my $code = shift;
return if $code->();
(undef, my $file, my $line) = caller;
$file =~ s!([^/\\]+)$!$1!;
my $assertion = '';
if (try_load_optional('B::Deparse')) {
my $deparse = B::Deparse->new(qw{-P -x9});
$assertion = $deparse->coderef2text($code);
( run in 0.235 second using v1.01-cache-2.11-cpan-49f99fa48dc )