Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: src/engine/Debug.cpp

Issue 10836037: Share code for data path retrieval in engine and plugin (Closed)
Patch Set: Fixed issues in previous patch Created June 4, 2013, 10:14 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « AdblockPlusPlugin.vcxproj ('k') | src/engine/main.cpp » ('j') | src/plugin/PluginSettings.cpp » ('J')

Powered by Google App Engine
This is Rietveld