Added functions to FFI module

This commit is contained in:
Josh Nussbaum
2015-09-20 21:15:55 -04:00
parent 18fa029e29
commit f1a8e8cace

View File

@@ -1,2 +1,14 @@
defmodule FFI do
@on_load :init
def init do
:erlang.load_nif("./ffi_nif", 0)
end
def call({library, name, arguments, return_type}, params),
do: nif_call(library, name, arguments, return_type, params)
def nif_call(library, name, arguments, return_type, params) do
:badarg
end
end