Skip to content

Commit

Permalink
Fixes to loading from current executing module functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jan 13, 2012
1 parent cdfbfa9 commit 4ed29ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/NativeCall.pm6
Expand Up @@ -83,9 +83,10 @@ my role Native[Routine $r, Str $libname] {
nqp::push($arg_info, param_hash_for($p))
}
my str $conv = self.?native_call_convention || '';
my $realname = $libname && $libname !~~ /\.\w+$/ ??
"$libname$*VM<config><load_ext>" !!
$libname;
my $realname =
!$libname.DEFINITE ?? "" !!
$libname ~~ /\.\w+$/ ?? $libname !!
"$libname$*VM<config><load_ext>";
nqp::buildnativecall(self,
nqp::unbox_s($realname), # library name
nqp::unbox_s($r.name), # symbol to call
Expand Down

0 comments on commit 4ed29ae

Please sign in to comment.