From c577fd6cf821379052fc3a04f3fe38e50e23cfd7 Mon Sep 17 00:00:00 2001 From: Josh Nussbaum Date: Mon, 13 Jun 2016 01:56:21 -0400 Subject: [PATCH] Removed ffi_lib/1 and added name option --- lib/ffi/library.ex | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/lib/ffi/library.ex b/lib/ffi/library.ex index 008b75b..40ee9a1 100644 --- a/lib/ffi/library.ex +++ b/lib/ffi/library.ex @@ -1,14 +1,9 @@ defmodule FFI.Library do - defmacro __using__(_x) do + defmacro __using__([name: name]) do quote do import FFI.Library - end - end - defmacro ffi_lib(name) do - quote do - def ffi_lib, - do: unquote(name) + def ffi_lib, do: unquote(name) end end