Renamed ffi_lib/0 to __lib_name__/0

This commit is contained in:
Josh Nussbaum
2016-06-13 02:18:59 -04:00
parent 341dddcfcc
commit d23c9601c9

View File

@@ -3,7 +3,7 @@ defmodule FFI.Library do
quote do quote do
import FFI.Library import FFI.Library
def ffi_lib, do: unquote(name) def __lib_name__, do: unquote(name)
end end
end end
@@ -12,7 +12,7 @@ defmodule FFI.Library do
quote do quote do
def unquote(name)(unquote_splicing(argument_names)) do def unquote(name)(unquote_splicing(argument_names)) do
definition = {ffi_lib, definition = {__lib_name__,
unquote(name), unquote(name),
unquote(arguments), unquote(arguments),
unquote(return_type)} unquote(return_type)}