Skip to content

Instantly share code, notes, and snippets.

@seriyps
Created December 5, 2017 16:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seriyps/10ac055a632de56ff58e6ea0967d4c42 to your computer and use it in GitHub Desktop.
Save seriyps/10ac055a632de56ff58e6ea0967d4c42 to your computer and use it in GitHub Desktop.
Erlang is function exported with loading
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