| 1 | package Devel::AssertOS::QNX; | ||
| 2 | |||
| 3 | 6 | ▶ | use Devel::CheckOS; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 6 | ▶ | no warnings 'redefine'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | our $VERSION = '1.2'; | ||
| 9 | |||
| 10 | 15 | ▶ | sub matches { return qw(QNX::v4 QNX::Neutrino); } |
|
Subroutine
matches: called CC=1 SCAR=0.0
| |||
| 11 | 13 | ▶ | sub os_is { Devel::CheckOS::os_is(matches()); } |
|
Subroutine
os_is: called CC=1 SCAR=0.0
| |||
| 12 | 1 | ▶ | sub expn { |
|
Subroutine
expn: called CC=1 SCAR=0.0
| |||
| 13 | 1 | join("\n", | |
| 14 | "All versions of QNX match this, as well as (possibly) a more specific", | ||
| 15 | "match" | ||
| 16 | ) | ||
| 17 | } | ||
| 18 | Devel::CheckOS::die_unsupported() unless(os_is()); | ||
| 19 | |||
| 20 | =head1 COPYRIGHT and LICENCE | ||
| 21 | |||
| 22 | Copyright 2024 David Cantrell | ||
| 23 | |||
| 24 | 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. | ||
| 25 | |||
| 26 | =cut | ||
| 27 | |||
| 28 | 1; | ||