aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2014-06-11 23:27:06 +0200
committerBjörn-Egil Dahlberg <[email protected]>2014-07-11 16:55:07 +0200
commite1f903d5210fb5b91ff47229fb57bf3b0edeb79e (patch)
tree8914b206c75b8cb918a523436a220c670cbd34e3 /erts/preloaded/src
parent9a1419a7d4325085dc2235a8531d77e1d96ea689 (diff)
downloadotp-e1f903d5210fb5b91ff47229fb57bf3b0edeb79e.tar.gz
otp-e1f903d5210fb5b91ff47229fb57bf3b0edeb79e.tar.bz2
otp-e1f903d5210fb5b91ff47229fb57bf3b0edeb79e.zip
erts: Introduce erlang:fun_info_mfa/1
Introduced for proc_lib:init_p/3
Diffstat (limited to 'erts/preloaded/src')
-rw-r--r--erts/preloaded/src/erlang.erl11
1 files changed, 10 insertions, 1 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl
index 4ff0513321..98d7a942a6 100644
--- a/erts/preloaded/src/erlang.erl
+++ b/erts/preloaded/src/erlang.erl
@@ -91,7 +91,7 @@
-export([external_size/2, finish_after_on_load/2, finish_loading/1, float/1]).
-export([float_to_binary/1, float_to_binary/2,
float_to_list/1, float_to_list/2]).
--export([fun_info/2, fun_to_list/1, function_exported/3]).
+-export([fun_info/2, fun_info_mfa/1, fun_to_list/1, function_exported/3]).
-export([garbage_collect/0, garbage_collect/1, garbage_collect/2]).
-export([garbage_collect_message_area/0, get/0, get/1, get_keys/1]).
-export([get_module_info/1, get_stacktrace/0, group_leader/0]).
@@ -827,6 +827,15 @@ float_to_list(_Float, _Options) ->
fun_info(_Fun, _Item) ->
erlang:nif_error(undefined).
+%% fun_info_mfa/1
+-spec erlang:fun_info_mfa(Fun) -> {Mod, Name, Arity} when
+ Fun :: function(),
+ Mod :: atom(),
+ Name :: atom(),
+ Arity :: non_neg_integer().
+fun_info_mfa(_Fun) ->
+ erlang:nif_error(undefined).
+
%% fun_to_list/1
-spec erlang:fun_to_list(Fun) -> string() when
Fun :: function().