Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kartik Thakore
committed
Aug 8, 2013
1 parent
a609b80
commit 01647ac
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package SDL2::Log; | ||
use strict; | ||
use warnings; | ||
use vars qw(@ISA @EXPORT @EXPORT_OK); | ||
require Exporter; | ||
require DynaLoader; | ||
|
||
use SDL2::Constants ':SDL2::Log'; | ||
our @ISA = qw(Exporter DynaLoader); | ||
|
||
use SDL2::Internal::Loader; | ||
if (check_and_load(__PACKAGE__)) { | ||
bootstrap SDL2::Log; | ||
} | ||
else { | ||
warn "WARNING: " . __PACKAGE__ . " is not available\n"; | ||
} | ||
|
||
use base 'Exporter'; | ||
|
||
our @EXPORT = @{ $SDL2::Constants::EXPORT_TAGS{'SDL2::Log'} }; | ||
|
||
our %EXPORT_TAGS = ( | ||
all => \@EXPORT, | ||
priority => $SDL2::Constants::EXPORT_TAGS{'SDL2::Log/type'} | ||
); | ||
|
||
1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters