Skip to content

Instantly share code, notes, and snippets.

@wjmboss
Forked from h4cc/current_function_name.erl
Created July 18, 2018 11:33
Show Gist options
  • Save wjmboss/b1fd3a6e08d0e8090a98cbb850dd30f1 to your computer and use it in GitHub Desktop.
Save wjmboss/b1fd3a6e08d0e8090a98cbb850dd30f1 to your computer and use it in GitHub Desktop.
Erlang macro for getting the current function name.
-define(current_function_name(), element(2, element(2, process_info(self(), current_function)))).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment