1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Add debugPrint function for VisualStudio debug output.

This commit is contained in:
Sergey Lipskiy 2015-06-04 22:19:50 +06:00
parent 36fbcd5eac
commit 847245350b

View File

@ -40,4 +40,20 @@ inline void LOG( u16 type, const char * format, ... ) {
#endif
#ifdef OS_WINDOWS
#include "windows/GLideN64_Windows.h"
#include <stdio.h>
inline void debugPrint(const char * format, ...) {
char text[256];
wchar_t wtext[256];
va_list va;
va_start(va, format);
vsprintf(text, format, va);
mbstowcs(wtext, text, 256);
OutputDebugString(wtext);
va_end(va);
}
#endif
#endif