Skip to content

Commit

Permalink
update calling convention of other traits too
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 12, 2012
1 parent d419ffa commit a78f01d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/NativeCall.pm6
Expand Up @@ -212,16 +212,16 @@ multi trait_mod:<is>(Routine $r, :$native!) is export {
}

# Specifies the calling convention to use for a native call.
multi trait_mod:<is>(Routine $r, $name, :$nativeconv!) is export {
$r does NativeCallingConvention[$name];
multi trait_mod:<is>(Routine $r, :$nativeconv!) is export {
$r does NativeCallingConvention[$nativeconv];
}

# Ways to specify how to marshall strings.
multi trait_mod:<is>(Parameter $p, $name, :$encoded!) is export {
$p does NativeCallEncoded[$name];
multi trait_mod:<is>(Parameter $p, :$encoded!) is export {
$p does NativeCallEncoded[$encoded];
}
multi trait_mod:<is>(Routine $p, $name, :$encoded!) is export {
$p does NativeCallEncoded[$name];
multi trait_mod:<is>(Routine $p, :$encoded!) is export {
$p does NativeCallEncoded[$encoded];
}

class CStr is repr('CStr') {
Expand Down

0 comments on commit a78f01d

Please sign in to comment.