blib/lib/SDL2/platform.pm untested

filter: Statementstmt 0.0% 0 / 5 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 6 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 package SDL2::platform 0.01 {
2 use SDL2::Utils;
3 #
4 attach platform => { SDL_GetPlatform => [ [], 'string' ] };
5  
6 =encoding utf-8
7  
8 =head1 NAME
9  
10 SDL2::platform - Platform Defined Values
11  
12 =head1 SYNOPSIS
13  
14 use SDL2 qw[:platform];
15 warn SDL_GetPlatform( );
16  
17 =head1 DESCRIPTION
18  
19 SDL2::platform contains functions for dealing with the current platform.
20  
21 =head1 Functions
22  
23 These may be imported by name or with the C<:platform> tag.
24  
25 =head2 C<SDL_GetPlatform( )>
26  
27 Get the name of the platform.
28  
29 if ( SDL_GetPlatform( ) eq 'Linux' ) {
30 # ...
31 }
32  
33 Here are the names returned for some (but not all) supported platforms:
34  
35 =over
36  
37 =item * "Windows"
38  
39 =item * "Mac OS X"
40  
41 =item * "Linux"
42  
43 =item * "iOS"
44  
45 =item * "Android"
46  
47 =back
48  
49 Returns the name of the platform. If the correct platform name is not
50 available, returns a string beginning with the text "Unknown".
51  
52 =head1 LICENSE
53  
54 Copyright (C) Sanko Robinson.
55  
56 This library is free software; you can redistribute it and/or modify it under
57 the terms found in the Artistic License 2. Other copyrights, terms, and
58 conditions may apply to data transmitted through this module.
59  
60 =head1 AUTHOR
61  
62 Sanko Robinson E<lt>sanko@cpan.orgE<gt>
63  
64 =begin stopwords
65  
66 =end stopwords
67  
68 =cut
69  
70 };
71 1;