Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fm.idetest.macros
- import scala.language.experimental.macros
- import scala.reflect.macros.Context
- object IDETestMacros {
- def hello(): Unit = macro hello_impl
- def hello_impl(c: Context)(): c.Expr[Unit] = {
- import c.universe._
- val prop = System.getProperty("idescalacoptionsdproperty")
- c.eval(reify {
- println(s"Hello World!, Macro Property: $prop")
- })
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement