ported code to use rebar and R14B
This commit is contained in:
21
src/geef.erl
Normal file
21
src/geef.erl
Normal file
@@ -0,0 +1,21 @@
|
||||
-module(geef).
|
||||
-export([start/0, hex_to_raw/1, object_exists/2]).
|
||||
|
||||
start() ->
|
||||
case code:priv_dir(geef) of
|
||||
{error, bad_name} ->
|
||||
SoName = filename:join("priv", geef);
|
||||
Dir ->
|
||||
SoName = filename:join(Dir, geef)
|
||||
end,
|
||||
io:format("Hey There: ~s~n", [SoName]),
|
||||
erlang:load_nif(SoName, 0).
|
||||
|
||||
hex_to_raw(_Val) ->
|
||||
nif_error(?LINE).
|
||||
|
||||
object_exists(_Val, _Val2) ->
|
||||
nif_error(?LINE).
|
||||
|
||||
nif_error(Line) ->
|
||||
exit({nif_not_loaded,module,?MODULE,line,Line}).
|
||||
Reference in New Issue
Block a user