Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Overload of the native trait_mod that handles the 'call in current ex…

…ecutable' functionality (though probably needs a tweak in NQP lib too).
  • Loading branch information...
commit bcbdb85dfaf2a5b7bfef92afbad4c559dbef591f 1 parent b3e94c4
@jnthn authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/NativeCall.pm6
View
6 lib/NativeCall.pm6
@@ -175,6 +175,12 @@ multi trait_mod:<is>(Routine $r, $libname, :$native!) is export {
$r does Native[$r, $libname];
}
+# Specifies that the routine is actually a native call, into the
+# current executable (platform specific).
+multi trait_mod:<is>(Routine $r, :$native!) is export {
+ $r does Native[$r, Str];
+}
+
# Specifies the calling convention to use for a native call.
multi trait_mod:<is>(Routine $r, $name, :$nativeconv!) is export {
$r does NativeCallingConvention[$name];
Please sign in to comment.
Something went wrong with that request. Please try again.