aboutsummaryrefslogtreecommitdiffstats
path: root/system/doc/tutorial/complex6.erl
blob: a5f51886c8ada2d36b79ebabcd03fad2fce13009 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
-module(complex6).
-export([foo/1, bar/1]).
-on_load(init/0).

init() ->
    ok = erlang:load_nif("./complex6_nif", 0).

foo(_X) ->
    exit(nif_library_not_loaded).
bar(_Y) ->
    exit(nif_library_not_loaded).