Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #42 from FROGGS/patch-2
register module loader using CompUnitRepo
  • Loading branch information
FROGGS committed Sep 14, 2015
2 parents 5c2bdb4 + 2a11020 commit e0901ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Inline/Perl5.pm6
Expand Up @@ -12,7 +12,6 @@ has Bool $!scalar_context = False;

my $default_perl5;

use nqp;
use NativeCall;

sub native(Sub $sub) {
Expand Down Expand Up @@ -1009,7 +1008,7 @@ class Perl5ModuleLoader {
}
}

nqp::getcurhllsym('ModuleLoader').p6ml.register_language_module_loader('Perl5', Perl5ModuleLoader, :force(True));
CompUnitRepo.register_language_module_loader('Perl5', Perl5ModuleLoader, :force(True));

my Bool $inline_perl6_in_use = False;
sub init_inline_perl6_new_callback(&inline_perl5_new (Perl5Interpreter --> OpaquePointer)) { ... };
Expand Down

0 comments on commit e0901ba

Please sign in to comment.