blob: c79fc3062812b6b2f35b2ec824f0ee27da89b99d (
plain) (
tree)
|
|
import scala.reflect.macros.{BlackboxContext => Ctx}
object Impls {
def foo(unconventionalName: Ctx)(x: unconventionalName.Expr[Int]) = {
import unconventionalName.universe._
unconventionalName.Expr[Unit](q"""println("invoking foo...")""")
}
}
object Macros {
def foo(x: Int) = macro Impls.foo
}
|