diff options
author | Björn-Egil Dahlberg <[email protected]> | 2015-09-29 15:33:18 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2015-11-17 16:07:56 +0100 |
commit | 85491375da14ab087ec99532ee3a896ff6fe0371 (patch) | |
tree | 8a98c38355c1ab4d91cf745ddce6c8f2ec3de9a7 /erts | |
parent | 7f215c6db8caf0760161437e9d1c3c0a06cf5841 (diff) | |
download | otp-85491375da14ab087ec99532ee3a896ff6fe0371.tar.gz otp-85491375da14ab087ec99532ee3a896ff6fe0371.tar.bz2 otp-85491375da14ab087ec99532ee3a896ff6fe0371.zip |
Add erlang:copy_literals/2 spec
Diffstat (limited to 'erts')
-rw-r--r-- | erts/preloaded/src/erlang.erl | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl index 6a9ec9c915..0d5176019f 100644 --- a/erts/preloaded/src/erlang.erl +++ b/erts/preloaded/src/erlang.erl @@ -91,7 +91,7 @@ -export([bit_size/1, bitsize/1, bitstring_to_list/1]). -export([bump_reductions/1, byte_size/1, call_on_load_function/1]). -export([cancel_timer/1, cancel_timer/2, check_old_code/1, check_process_code/2, - check_process_code/3, crc32/1]). + check_process_code/3, copy_literals/2, crc32/1]). -export([crc32/2, crc32_combine/3, date/0, decode_packet/3]). -export([delete_element/2]). -export([delete_module/1, demonitor/1, demonitor/2, display/1]). @@ -520,6 +520,13 @@ get_cpc_opts([{allow_gc, AllowGC} | Options], Async, _OldAllowGC) -> get_cpc_opts([], Async, AllowGC) -> {Async, AllowGC}. +%% copy_literals/2 +-spec erlang:copy_literals(Module,Bool) -> 'true' | 'false' | 'aborted' when + Module :: module(), + Bool :: boolean(). +copy_literals(_Mod, _Bool) -> + erlang:nif_error(undefined). + %% crc32/1 -spec erlang:crc32(Data) -> non_neg_integer() when Data :: iodata(). |