line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Devel::AssertOS::Apple; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
14
|
use Devel::CheckOS; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
89
|
|
4
|
2
|
|
|
2
|
|
12
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
42
|
|
5
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
58
|
|
6
|
2
|
|
|
2
|
|
45
|
no warnings 'redefine'; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
291
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
our $VERSION = '1.3'; |
9
|
|
|
|
|
|
|
|
10
|
3
|
|
|
3
|
|
23
|
sub matches { return qw(iOS MacOSX MacOSclassic); } |
11
|
2
|
|
|
2
|
|
6
|
sub os_is { Devel::CheckOS::os_is(matches()); } |
12
|
|
|
|
|
|
|
Devel::CheckOS::die_unsupported() unless(os_is()); |
13
|
|
|
|
|
|
|
|
14
|
1
|
|
|
1
|
|
92
|
sub expn { "The operating system is from Apple" } |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 COPYRIGHT and LICENCE |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Copyright 2023 David Cantrell |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
This software is free-as-in-speech software, and may be used, distributed, and modified under the terms of either the GNU General Public Licence version 2 or the Artistic Licence. It's up to you which one you use. The full text of the licences can be found in the files GPL2.txt and ARTISTIC.txt, respectively. |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=cut |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |