28 Jan 21:49
Re: Macros
From: D H <doug00@...>
Subject: Re: Macros
Newsgroups: gmane.comp.lang.boo.user
Date: 2005-01-28 20:49:03 GMT
Subject: Re: Macros
Newsgroups: gmane.comp.lang.boo.user
Date: 2005-01-28 20:49:03 GMT
On Fri, 28 Jan 2005 22:09:16 +0200, Ayende Rahien <Ayende@...> wrote: > I want to create a macro that translate this: > > > > log debug "message" > > > > To: > > > > Logger.Debug("message") if Logger.IsDebugEnabled > > > > The problem that I've is that I'm unable to figure out how to make it. > > I've a LogMacro class, but I'm not sure how do I get the rest of the > parameters, (the debug and the string) > > Furthermore, I'm not sure how I make the compiler recognize it. There is a debug macro available, or I could write a "trace" macro. Unfortunately "debug" won't work with booi because booi has no debug option. (booc does has a -d option) You can capture debug messages by adding a debug listener:(Continue reading)
RSS Feed