RE: [GD-General] runtime error logging
Brought to you by:
vexxed72
|
From: Stefan B. <ste...@te...> - 2003-07-14 16:10:27
|
> Any ideas on how I could do "singleton" logging of errors?
> Can't think of any simple solution :(
Would this work ok in your case?
#define Singleton_Log(x) { static bool bSeen = false; \
if (bSeen == false) { bSeen = true; LogMessage(x) } }
Cheers,
Stef! :)
--
Stefan Boberg, R&D Manager - Team17 Software Ltd.
bo...@te...
|