Skip to content

Commit

Permalink
Add note about working around NC lib name expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
ab5tract committed Aug 12, 2019
1 parent dc091d3 commit e60e707
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/Language/nativecall.pod6
Expand Up @@ -693,7 +693,11 @@ sub baz is native(LIBBAR) {*}
=end code
You can also put an incomplete path like './foo' and NativeCall will automatically put
the right extension according to the platform specification.
the right extension according to the platform specification. If you wish to suppress this expansion, simply pass the string as the body of a block.
=begin code
sub bar is native({ LIBFOO }) {*}
=end code
BE CAREFUL: the C<native> trait and C<constant> are evaluated at compile time. Don't write a constant
that depends on a dynamic variable like:
Expand Down

0 comments on commit e60e707

Please sign in to comment.