blob: c9cecfa99f43b3becad2dd2548907f21797ebe9a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
import scala.reflect.macros.BlackboxContext
object Impls {
def impl(c: BlackboxContext) = {
import c.universe._
reify {
println(c.Expr[String](Literal(Constant(c.settings.toString))).splice)
}
}
}
object Macros {
def foo = macro Impls.impl
}
|