Explicit macro call provides a case class with the file and line number
Explicit macro call provides a case class with the file and line number
val here = CODEREF
Explicit macro call provides the file relative to the compiler working directory as a string
Explicit macro call provides the file relative to the compiler working directory as a string
val here = FILE
Explicit macro call provides the line number
Explicit macro call provides the line number
val here = LINE
Implicit macro definiton provides a case class with the file and line number useful for passing as an implicit reference to methods
Implicit macro definiton provides a case class with the file and line number useful for passing as an implicit reference to methods
def foo(bar: Int)(implicit caller: CodeRef) { println("called foo(" + bar + ") at " + caller) }