I'm sure this won't work in every case, but depending on your usage you 
could model after the hack at the beginning of this file:
https://github.com/joshday/OnlineStats.jl/blob/master/src/log.jl

On Saturday, June 6, 2015 at 4:46:44 AM UTC-4, Scott Jones wrote:
>
> I have been trying to find out some way in Julia of getting information 
> about what the current file name & line number is, and also the containing 
> module(s),
> method or type, etc., in a macro.
> I'd looked to see if there was anything like __LINE__, but I wasn't able 
> to find anything similar so far...
>
> Thanks, Scott
>

Reply via email to