This should restore compatibility with <= 2.1.3 without being quite as
hackish as that code was.
@EXPORT = qw( in verify &NULL );
};
+# Give our caller SDL::Constant's stuff as well as ours.
+sub import {
+ my $self = shift;
+
+ $self->export_to_level(1, @_);
+ SDL::Constants->export_to_level(1);
+}
$VERSION = '2.2.1';
SDL_SAMPLEFLAG_EAGAIN
);
-for (@EXPORT) {
- *{"SDL::" . $_} = *{$_};
- *{"main::" . $_} = *{$_};
-}
+@ISA = qw(Exporter);
sub AUDIO_S16 {32784}
sub AUDIO_S16MSB {36880}