blob: 6d2d4d1d8b6b0d393ec808c2fe7ad2757e744a31 (
plain) (
tree)
|
|
package mill.define
import sourcecode.Compat.Context
import language.experimental.macros
case class Caller(value: Any)
object Caller {
def apply()(implicit c: Caller) = c.value
implicit def generate: Caller = macro impl
def impl(c: Context): c.Tree = {
import c.universe._
q"new _root_.mill.define.Caller(this)"
}
}
|