http://qs1969.pair.com?node_id=794467


in reply to Re: Executing line number
in thread Executing line number

I think printf() is more clear in such a situation :)
printf STDERR "file: %s, line: %s\n", __FILE__, __LINE__;