Skip to content

Instantly share code, notes, and snippets.

@Skarsnik
Last active September 1, 2017 10:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Skarsnik/8687bba8063422798d1a2e83e859c195 to your computer and use it in GitHub Desktop.
Save Skarsnik/8687bba8063422798d1a2e83e859c195 to your computer and use it in GitHub Desktop.
use NativeCall :utils;
my NC-Library-Handle $xml2-nh = get-native-library('libXML2');
if ! $xml2-nh.defined {
$xml2-nh = register-native-library('libXML2', 'libxml2', v2, :ENV<PERL6_LIBXML2>);
}
sub foo is native($xml2-nh) {*}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment