annotate erlang/erldc/src/dyncall.erl @ 37:8c8f848131c6

- version bump - better doc - made calling convention mode reset by default, as only way to specify convention used is via signature string
author Tassilo Philipp
date Mon, 13 Apr 2020 20:08:54 +0200
parents 0cfcc391201f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
1 %% Copyright (c) 2014 Erik Mackdanz <erikmack@gmail.com>
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
2
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
3 %% Permission to use, copy, modify, and distribute this software for any
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
4 %% purpose with or without fee is hereby granted, provided that the above
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
5 %% copyright notice and this permission notice appear in all copies.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
6
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
7 %% THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
8 %% WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
9 %% MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
10 %% ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
11 %% WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
12 %% ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
13 %% OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
14
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
15 -module(dyncall).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
16
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
17 -export([
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
18 mode/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
19 get_error/1,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
20 reset/1,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
21 load_library/1,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
22 find_symbol/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
23 new_call_vm/1,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
24 arg_double/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
25 call_double/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
26 arg_float/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
27 call_float/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
28 arg_int/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
29 call_int/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
30 arg_char/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
31 call_char/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
32 arg_bool/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
33 call_bool/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
34 arg_short/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
35 call_short/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
36 arg_long/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
37 call_long/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
38 arg_longlong/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
39 call_longlong/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
40 arg_ptr/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
41 call_ptr/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
42 call_void/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
43 arg_string/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
44 call_string/2,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
45 argf/3,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
46 callf/4
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
47 ]).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
48
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
49 -on_load(load_nif/0).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
50
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
51 load_nif() ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
52 Dir = case code:priv_dir(dyncall) of
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
53 {error, bad_name} ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
54 filename:dirname(code:which(?MODULE)) ++ "/../priv";
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
55 OtherDir -> OtherDir
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
56 end,
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
57 erlang:load_nif(Dir ++ "/erldc", 0).
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
58
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
59 -spec load_library(LibPath :: string()) -> {ok,Lib :: binary()} | {error,_Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
60 load_library(_LibPath) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
61 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
62
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
63 -spec find_symbol(Lib :: binary(), SymName :: string()) -> {ok,Sym :: binary()} | {error,_Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
64 find_symbol(_Lib, _SymName) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
65 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
66
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
67 -spec new_call_vm(Size :: pos_integer()) -> {ok,Vm :: binary()} | {error,_Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
68 new_call_vm(_Size) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
69 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
70
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
71 -spec arg_double(Vm :: binary(), Double :: float()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
72 arg_double(_Vm, _Double) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
73 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
74
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
75 -spec call_double(Vm :: binary(), Sym :: binary()) -> {ok, Result :: float()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
76 call_double(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
77 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
78
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
79 -spec arg_float(Vm :: binary(), Float :: float()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
80 arg_float(_Vm, _Float) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
81 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
82
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
83 -spec call_float(Vm :: binary(), Sym :: binary()) -> {ok, Result :: float()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
84 call_float(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
85 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
86
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
87 -spec arg_int(Vm :: binary(), Int :: integer()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
88 arg_int(_Vm, _Int) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
89 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
90
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
91 -spec call_int(Vm :: binary(), Sym :: binary()) -> {ok, Result :: integer()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
92 call_int(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
93 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
94
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
95 -spec arg_char(Vm :: binary(), Char :: char()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
96 arg_char(_Vm, _Char) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
97 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
98
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
99 -spec call_char(Vm :: binary(), Sym :: binary()) -> {ok, Result :: char()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
100 call_char(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
101 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
102
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
103 -spec arg_bool(Vm :: binary(), Bool :: boolean()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
104 arg_bool(_Vm, _Bool) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
105 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
106
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
107 -spec call_bool(Vm :: binary(), Sym :: binary()) -> {ok, Result :: boolean()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
108 call_bool(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
109 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
110
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
111 -spec arg_short(Vm :: binary(), Short :: integer()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
112 arg_short(_Vm, _Short) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
113 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
114
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
115 -spec call_short(Vm :: binary(), Sym :: binary()) -> {ok, Result :: integer()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
116 call_short(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
117 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
118
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
119 -spec arg_long(Vm :: binary(), Long :: integer()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
120 arg_long(_Vm, _Long) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
121 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
122
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
123 -spec call_long(Vm :: binary(), Sym :: binary()) -> {ok, Result :: integer()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
124 call_long(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
125 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
126
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
127 -spec arg_longlong(Vm :: binary(), Longlong :: integer()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
128 arg_longlong(_Vm, _Longlong) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
129 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
130
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
131 -spec call_longlong(Vm :: binary(), Sym :: binary()) -> {ok, Result :: integer()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
132 call_longlong(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
133 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
134
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
135
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
136 -spec arg_ptr(Vm :: binary(), Ptr :: binary()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
137 arg_ptr(_Vm, _Ptr) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
138 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
139
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
140 -spec call_ptr(Vm :: binary(), Sym :: binary()) -> {ok, Result :: binary()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
141 call_ptr(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
142 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
143
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
144 -spec call_void(Vm :: binary(), Sym :: binary()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
145 call_void(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
146 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
147
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
148 -spec arg_string(Vm :: binary(), String :: string()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
149 arg_string(_Vm, _String) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
150 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
151
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
152 -spec call_string(Vm :: binary(), Sym :: binary()) -> {ok, Result :: string()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
153 call_string(_Vm, _Sym) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
154 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
155
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
156 -spec mode(Vm :: binary(), Mode :: pos_integer()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
157 mode(_Vm, _Mode) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
158 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
159
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
160 -spec get_error(Vm :: binary()) -> {ok, ErrorCode :: pos_integer()} | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
161 get_error(_Vm) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
162 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
163
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
164 -spec reset(Vm :: binary()) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
165 reset(_Vm) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
166 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
167
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
168 -spec argf(Vm :: binary(), Format :: string(), Args :: [term()]) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
169 argf(_Vm,_Format,_Args) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
170 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
171
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
172 -spec callf(Vm :: binary(), Sym :: binary(), Format :: string(), Args :: [term()]) -> ok | {error, _Reason}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
173 callf(_Vm,_Sym,_Format,_Args) ->
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
174 {error,"NIF library not loaded"}.
0cfcc391201f initial from svn dyncall-1745
Daniel Adler
parents:
diff changeset
175