Created
December 5, 2017 16:48
-
-
Save seriyps/10ac055a632de56ff58e6ea0967d4c42 to your computer and use it in GitHub Desktop.
Erlang is function exported with loading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
is_exported(M, F, A) -> | |
%% make a cheap test first to avoid unnecessary calls to code server | |
case erlang:module_loaded(M) of | |
false -> code:ensure_loaded(M); | |
true -> ok | |
end, | |
erlang:function_exported(M, F, A). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment