Skip to content

Instantly share code, notes, and snippets.

@h4cc
Created October 8, 2013 09:01
Show Gist options
  • Save h4cc/6881797 to your computer and use it in GitHub Desktop.
Save h4cc/6881797 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