diff options
Diffstat (limited to 'Source/pch.cpp')
-rw-r--r-- | Source/pch.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/pch.cpp b/Source/pch.cpp index 1730571..45113cd 100644 --- a/Source/pch.cpp +++ b/Source/pch.cpp | |||
@@ -1 +1,11 @@ | |||
1 | #include "pch.h" \ No newline at end of file | 1 | #include "pch.h" |
2 | |||
3 | void DebugPrint(std::string text) { | ||
4 | #ifdef _DEBUG | ||
5 | if (text[text.size()-1] != '\n') { | ||
6 | text += '\n'; | ||
7 | } | ||
8 | OutputDebugStringA(text.c_str()); | ||
9 | std::cout << text; | ||
10 | #endif | ||
11 | } | ||