Renamed ffi_lib/0 to __lib_name__/0
This commit is contained in:
@@ -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)}
|
||||||
|
|||||||
Reference in New Issue
Block a user