blob: b8e8f8e52fe56cb5b9c81277cd66a01b08ca0c67 (
plain) (
tree)
|
|
import language.experimental.macros
import scala.reflect.makro.Context
object Defs {
def mkInt = macro mkIntImpl
def mkIntImpl(c: Context): c.Expr[Any] = {
println(c.enclosingApplication)
c.reify{ 23 }
}
}
|