From d23c9601c9dc66f613cc4c503e857abbee2b9a42 Mon Sep 17 00:00:00 2001 From: Josh Nussbaum Date: Mon, 13 Jun 2016 02:18:59 -0400 Subject: [PATCH] Renamed ffi_lib/0 to __lib_name__/0 --- lib/ffi/library.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ffi/library.ex b/lib/ffi/library.ex index a5f9567..47db241 100644 --- a/lib/ffi/library.ex +++ b/lib/ffi/library.ex @@ -3,7 +3,7 @@ defmodule FFI.Library do quote do import FFI.Library - def ffi_lib, do: unquote(name) + def __lib_name__, do: unquote(name) end end @@ -12,7 +12,7 @@ defmodule FFI.Library do quote do def unquote(name)(unquote_splicing(argument_names)) do - definition = {ffi_lib, + definition = {__lib_name__, unquote(name), unquote(arguments), unquote(return_type)}