Update examples and readme to use name option

This commit is contained in:
Josh Nussbaum
2016-06-13 01:56:35 -04:00
parent c577fd6cf8
commit b55c4df0be
2 changed files with 2 additions and 6 deletions

View File

@@ -11,9 +11,7 @@ Inspired by [Ruby's FFI](https://github.com/ffi/ffi)
```elixir ```elixir
defmodule MyLib do defmodule MyLib do
use FFI.Library use FFI.Library, name: "libstdc++.so.6"
ffi_lib "libstdc++.so.6"
attach_function :puts, [:string], :int attach_function :puts, [:string], :int
end end

View File

@@ -1,7 +1,5 @@
defmodule MyLib do defmodule MyLib do
use FFI.Library use FFI.Library, name: "libstdc++.so.6"
ffi_lib "libstdc++.so.6"
attach_function :puts, [:string], :int attach_function :puts, [:string], :int
end end