debug sections and files idea

From: Robert Collins <robertc@dont-contact.us>
Date: 06 Feb 2003 17:41:59 +1100

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>.

Received on Wed Feb 05 2003 - 23:42:03 MST

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