Created
August 22, 2015 17:49
-
-
Save paulohrpinheiro/8ede64838cc2399f3d48 to your computer and use it in GitHub Desktop.
Criando uma chamada nativa com nome alternativo.
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
> our sub Sqlite3VersionNumber is symbol('sqlite3_libversion_number') returns Int is native('libsqlite3') { * } | |
sub Sqlite3VersionNumber( --> Int) { #`(Sub+{NativeCallSymbol[Str]}+{Native[Sub+{NativeCallSymbol[Str]},Str]}|140598248149192) ... } | |
> Sqlite3VersionNumber(); | |
3008008 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment