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

Unified Diff: src/engine/Debug.h

Issue 10790071: Send debug output to a file (Closed)
Patch Set: Created May 31, 2013, 9:54 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/engine/Debug.h
===================================================================
new file mode 100644
--- /dev/null
+++ b/src/engine/Debug.h
@@ -0,0 +1,16 @@
+#ifndef DEBUG_H
+#define DEBUG_H
+
+#include <string>
+
+#ifdef _DEBUG
+void Debug(const std::string& text);
+void DebugLastError(const std::string& message);
+void DebugException(const std::exception& exception);
+#else
+void Debug(const std::string& text) {}
+void DebugLastError(const std::string& message) {}
+void DebugException(const std::exception& exception) {}
+#endif
+
+#endif // DEBUG_H
« no previous file with comments | « AdblockPlusEngine.vcxproj ('k') | src/engine/Debug.cpp » ('j') | src/engine/Debug.cpp » ('J')

Powered by Google App Engine
This is Rietveld