Skip to content

Instantly share code, notes, and snippets.

@kubukoz
Created February 25, 2016 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kubukoz/64a46ff8553e0614007b to your computer and use it in GitHub Desktop.
Save kubukoz/64a46ff8553e0614007b to your computer and use it in GitHub Desktop.
def hello2Impl(c: blackbox.Context)(s: c.Expr[String]): c.Expr[Unit] = {
import c.universe._
c.Expr(q"""println("hello " + ${s.tree} + "!")""")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment