Re: debug sections and files idea

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Thu, 06 Feb 2003 09:22:16 +0100

Why at all mention the section in debug() then?

And for C++ classes (and maybe even "C") the section should probably be
a static const member, not a define..

Regards
Henrik

Robert Collins wrote:
>
> Just a thought:
> rather than debug (23,4)(...) if we did:
> at the top of the .cc file, after includes
> #define THIS_SECTION 23
> and then
> debug (THIS_SECTION,4)(...)
>
> moving code around between files would be a little easier..
>
> similarly,
> #define THIS_CLASS ClassFoo
> ....
> debug (THIS_SECTION,4)(THIS_CLASS ":functionname: ...)
>
> Rob
>
> --
> GPG key available at: <http://users.bigpond.net.au/robertc/keys.txt>.
>
> ------------------------------------------------------------------------
> Name: signature.asc
> signature.asc Type: application/pgp-signature
> Description: This is a digitally signed message part
Received on Thu Feb 06 2003 - 01:52:23 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:13 MST