Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
distinguish between references and pointers
  • Loading branch information
FROGGS committed Mar 16, 2015
1 parent bda0796 commit 43bf4fb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/NativeCall.pm
Expand Up @@ -253,6 +253,13 @@ multi trait_mod:<is>(Parameter $p, :$cpp-const!) is export(:DEFAULT, :traits) {
$p does CPPConst;
}

role CPPRef {
method cpp-ref() { 1 }
}
multi trait_mod:<is>(Parameter $p, :$cpp-ref!) is export(:DEFAULT, :traits) {
$p does CPPRef;
}

multi refresh($obj) is export(:DEFAULT, :utils) {
nqp::nativecallrefresh($obj);
1;
Expand Down

0 comments on commit 43bf4fb

Please sign in to comment.