about summary refs log tree commit diff stats
path: root/Source/pch.cpp
blob: 45113cd6dd633f535883bf905ebf2616bfc653f8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "pch.h"

void DebugPrint(std::string text) {
#ifdef _DEBUG
    if (text[text.size()-1] != '\n') {
        text += '\n';
    }
    OutputDebugStringA(text.c_str());
    std::cout << text;
#endif
}