blob: a12c277c861d4638c0b2990c27c9d6754d3d8452 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import scala.language.experimental.macros
import scala.reflect.macros.Context
object Macros {
def printf(format: String, params: Any*): Unit = macro printf_impl
def printf_impl(c: Context)(format: c.Expr[String], params: c.Expr[Any]*): c.Expr[Unit] = ???
}
// something trivial to run
object Test extends App
|