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

Delta Between Two Patch Sets: src/engine/Debug.cpp

Issue 10836037: Share code for data path retrieval in engine and plugin (Closed)
Left Patch Set: Created June 4, 2013, 9:54 a.m.
Right Patch Set: Fixed nit Created June 4, 2013, 10:38 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « AdblockPlusPlugin.vcxproj ('k') | src/engine/main.cpp » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
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
LEFTRIGHT

Powered by Google App Engine
This is Rietveld