Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
implement "is rw" params in NativeCall
  • Loading branch information
FROGGS committed Apr 2, 2015
1 parent b4576d7 commit 00674de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/NativeCall.pm
Expand Up @@ -21,6 +21,7 @@ sub param_hash_for(Parameter $p, :$with-typeobj) {
my Mu $result := nqp::hash();
my $type := $p.type();
nqp::bindkey($result, 'typeobj', nqp::decont($type)) if $with-typeobj;
nqp::bindkey($result, 'rw', nqp::unbox_i(1)) if $p.rw;
if $type ~~ Str {
my $enc := $p.?native_call_encoded() || 'utf8';
nqp::bindkey($result, 'type', nqp::unbox_s(string_encoding_to_nci_type($enc)));
Expand Down

0 comments on commit 00674de

Please sign in to comment.