Skip to content

Commit

Permalink
add a (commented out) diagnostic to trait_mod:<is>, tweak the mysql e…
Browse files Browse the repository at this point in the history
…xample, add a .gitignore
  • Loading branch information
Martin Berends committed May 26, 2010
1 parent 59e240f commit f2fccb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
*.pir
*~
4 changes: 2 additions & 2 deletions examples/mysqlclient.p6
Expand Up @@ -62,7 +62,7 @@ sub mysql_field_count( OpaquePointer $mysql_client )
{ ... }

sub mysql_free_result( OpaquePointer $result_set )
returns OpaquePointer
# returns OpaquePointer
is native('libmysqlclient')
{ ... }

Expand All @@ -83,7 +83,7 @@ sub mysql_library_init( Int $argc, OpaquePointer $argv,
{ ... }

sub mysql_library_end()
returns OpaquePointer # currently not working, should be void
# returns OpaquePointer # currently not working, should be void
is native('libmysqlclient')
{ ... }

Expand Down
1 change: 1 addition & 0 deletions lib/NativeCall.pm6
Expand Up @@ -94,6 +94,7 @@ our multi trait_mod:<is>(Routine $r, $libname, :$native!) {
my $call-sig = perl6-sig-to-backend-sig($r);
my $return-mapper = make-mapper($r.returns);
my $lib = pir::loadlib__Ps($libname);
# warn "routine $r.name() signature $call-sig";
unless $lib {
die "The native library '$libname' required for '$entry-point' could not be located";
}
Expand Down

0 comments on commit f2fccb0

Please sign in to comment.