| Index: src/engine/Debug.cpp |
| =================================================================== |
| --- a/src/engine/Debug.cpp |
| +++ b/src/engine/Debug.cpp |
| @@ -9,47 +9,7 @@ |
| #ifdef _DEBUG |
| -namespace |
| -{ |
| - class CriticalSection |
| - { |
| - public: |
| - CriticalSection() |
| - { |
| - InitializeCriticalSection(§ion); |
| - } |
| - |
| - ~CriticalSection() |
| - { |
| - DeleteCriticalSection(§ion); |
| - } |
| - |
| - class Lock |
| - { |
| - public: |
| - Lock(CriticalSection& cs) |
| - : section(&cs.section) |
| - { |
| - EnterCriticalSection(section); |
| - } |
| - |
| - ~Lock() |
| - { |
| - LeaveCriticalSection(section); |
| - } |
| - private: |
| - LPCRITICAL_SECTION section; |
| - Lock(const Lock&); |
| - Lock& operator=(const Lock&); |
| - }; |
| - private: |
| - CRITICAL_SECTION section; |
| - CriticalSection(const CriticalSection&); |
| - CriticalSection& operator=(const CriticalSection&); |
| - }; |
| - |
| - CriticalSection debugLock; |
| -} |
| +CriticalSection debugLock; |
|
Wladimir Palant
2013/06/17 12:57:24
IMHO this should be kept inside the anonymous name
|
| void Debug(const std::string& text) |
| { |