Removed ffi_lib/1 and added name option
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user