[erlang-questions] How to get the line number of current executable code?

devdoer bird <>
Fri Aug 15 19:03:08 CEST 2008


HI:

I want to implement a function like "get_current_lineno()/0" to get the
current line number of the calling point?
Eg.
.....
....
io:format("current line is ~w\n",[get_current_lineno()])
.....

the above code will print the line number of the calling point in the source
file.

How can I do this  in erlang?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080816/e4920188/attachment.html>


More information about the erlang-questions mailing list