Last active
August 29, 2015 14:27
-
-
Save paulohrpinheiro/448163c647019181a75a to your computer and use it in GitHub Desktop.
Criando a primeira chamada nativa.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ perl6 | |
> use NativeCall | |
> sub sqlite3_libversion_number() returns Int is native('libsqlite3') { * } | |
sub sqlite3_libversion_number( --> Int) { #`(Sub+{Native[Sub,Str]}|139826072374712) ... } | |
> say sqlite3_libversion_number() | |
3008008 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment