OLD | NEW |
1 #include "stdafx.h" | 1 #include "stdafx.h" |
2 | 2 |
3 #include <fstream> | 3 #include <fstream> |
4 #include <stdio.h> | 4 #include <stdio.h> |
5 | 5 |
| 6 #include "../shared/Utils.h" |
| 7 |
6 #include "Debug.h" | 8 #include "Debug.h" |
7 #include "Utils.h" | |
8 | 9 |
9 #ifdef _DEBUG | 10 #ifdef _DEBUG |
10 | 11 |
11 namespace | 12 namespace |
12 { | 13 { |
13 class CriticalSection | 14 class CriticalSection |
14 { | 15 { |
15 public: | 16 public: |
16 CriticalSection() | 17 CriticalSection() |
17 { | 18 { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 76 |
76 void DebugException(const std::exception& exception) | 77 void DebugException(const std::exception& exception) |
77 { | 78 { |
78 Debug(std::string("An exception occurred: ") + exception.what()); | 79 Debug(std::string("An exception occurred: ") + exception.what()); |
79 } | 80 } |
80 #else | 81 #else |
81 void Debug(const std::string& text) {} | 82 void Debug(const std::string& text) {} |
82 void DebugLastError(const std::string& message) {} | 83 void DebugLastError(const std::string& message) {} |
83 void DebugException(const std::exception& exception) {} | 84 void DebugException(const std::exception& exception) {} |
84 #endif // _DEBUG | 85 #endif // _DEBUG |
OLD | NEW |