added working object_exists function

This commit is contained in:
Scott Chacon
2010-05-25 07:52:28 -07:00
parent abdd070a77
commit 7b4b8cf4e4
3 changed files with 39 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
-module(geef).
-export([start/0, hex_to_raw/1]).
-export([start/0, hex_to_raw/1, object_exists/2]).
start() ->
erlang:load_nif("geef", 0).
@@ -7,5 +7,8 @@ start() ->
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}).