All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mill.define.Caller.scala Maven / Gradle / Ivy

The newest version!
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)"
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy