On Fri, 2008-09-12 at 15:29 -0700, Pawel Veselov wrote:
> would it be interesting if I did the following changes to wcetrace facilities:
> 
> * replace WCETRACE with the define that first evaluates the current
> level and only then calls the trace printout. This will prevent
> arguments from being evaluated if the tracing is off for the specified
> level.
> * Print out the level on the trace line
> * Add a WCEDOTRACE(level,code) define that can be used to execute code
> if the trace level "level" is active.

Looks good. Be sure to keep things stable, this kind of code is hard to
debug when things go wrong.

        Danny
-- 
Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel

Reply via email to