Perfect, thank you very much!
duminică, 28 februarie 2016, 16:09:36 UTC+1, Kristoffer Carlsson a scris: > > Maybe something like: > > if DEV > macro devtime(ex) > @time ex > end > else > macro devtime(ex) > esc(ex) > end > > end > > And then use @devtime instead of @time > > On Sunday, February 28, 2016 at 4:03:23 PM UTC+1, Adrian Salceanu wrote: >> >> I have an application that runs in 2 environments, DEV and PROD. While >> running in DEV I'd like to see @time information for different expressions. >> But not in PROD. Any ideas about how can this be done so that I don't end >> up littering my code with conditionals, such as: >> >> if DEV >> @time expr >> else >> expr >> end >> >> Thanks! >> >
