Removed ffi_lib/1 and added name option

This commit is contained in:
Josh Nussbaum
2016-06-13 01:56:21 -04:00
parent 058804a0bb
commit c577fd6cf8

View File

@@ -1,14 +1,9 @@
defmodule FFI.Library do defmodule FFI.Library do
defmacro __using__(_x) do defmacro __using__([name: name]) do
quote do quote do
import FFI.Library import FFI.Library
end
end
defmacro ffi_lib(name) do def ffi_lib, do: unquote(name)
quote do
def ffi_lib,
do: unquote(name)
end end
end end