Function name macro (the counterpart of ?MODULE)
Ciprian Dorin, Craciun
ciprian.craciun@REDACTED
Mon Dec 21 19:09:53 CET 2009
Hy all!
Maybe this question has been asked a thousand times, but please
forgive and bare with me just one more time... :)
So as predefined macros we have ?MODULE, ?FILE, and ?LINE... But
there is no ?FUNCTION (that should give me the current function name).
Now my question is: why isn't there any such macro? (I would guess
that having such a macro is not so complicated...) And what can I do
to obtain a similar functionality?
Thanks,
Ciprian.
More information about the erlang-questions
mailing list