lean4-htt/tests/lean/macroTrace.lean
Leonardo de Moura d70f9c232c feat: trace support for MacroM
closes #184
2021-04-23 19:15:14 -07:00

19 lines
325 B
Text

open Lean in
macro "tst" : term => do
Macro.trace[Meta.debug] "macro tst executed"
`(0)
#check tst
set_option trace.Meta.debug true in
#check tst
open Lean in
macro "tstcmd" : command => do
Macro.trace[Meta.debug] "macro cmdtst executed {1+2}"
`(#print "hello")
tstcmd
set_option trace.Meta.debug true in
tstcmd