diff options
author | jbzdarkid <jbzdarkid@gmail.com> | 2019-12-05 10:23:42 -0800 |
---|---|---|
committer | jbzdarkid <jbzdarkid@gmail.com> | 2019-12-05 10:23:42 -0800 |
commit | 38060c54f9f923d49b019fcf90f3494fd5469b74 (patch) | |
tree | 64a13b0453a78e3064374b9b7b1e3cb515f14dda /Source/pch.cpp | |
parent | 9f4ea5694ec32507db1d28000fa52665e0e84323 (diff) | |
download | witness-tutorializer-38060c54f9f923d49b019fcf90f3494fd5469b74.tar.gz witness-tutorializer-38060c54f9f923d49b019fcf90f3494fd5469b74.tar.bz2 witness-tutorializer-38060c54f9f923d49b019fcf90f3494fd5469b74.zip |
Bugfix, add debug function, add dots 2
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 | } | ||