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
