[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gzz] Gfx Debug.hxx
From: |
Tuomas Lukka |
Subject: |
[Gzz] Gfx Debug.hxx |
Date: |
Wed, 21 Aug 2002 09:58:53 +0300 |
User-agent: |
Mutt/1.4i |
I'm defining a new macro,
#define DBG(cname) if(cname) (std::cout << cname#___DBGNAME << ": ")
along with changing DBGVAR (and, appropriately, PREDBGVAR) to
#define DBGVAR(cname, name) const char *cname#___DBGNAME = name; int &cname =
Debug::var(name)
This means that from now on, in gfx/ the correct coding policy is to
use
DBGVAR(dbg, "foo.events");
...
DBG(dbg) << "Help!\n";
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gzz] Gfx Debug.hxx,
Tuomas Lukka <=