Skip to content
Snippets Groups Projects
Commit 6c02f54a authored by rswindell's avatar rswindell
Browse files

Prettier Win32-debug of keyboard input.

parent 1e15ff8d
No related branches found
No related tags found
No related merge requests found
...@@ -163,6 +163,16 @@ static int ypos=1; ...@@ -163,6 +163,16 @@ static int ypos=1;
static int currattr=7; static int currattr=7;
static int modeidx=3; static int modeidx=3;
#if defined(_DEBUG)
static void dputs(const char* str)
{
char msg[1024];
SAFEPRINTF(msg,"%s\r\n",str);
OutputDebugString(msg);
}
#endif
static void dprintf(const char* fmt, ...) static void dprintf(const char* fmt, ...)
{ {
#if defined(_DEBUG) #if defined(_DEBUG)
...@@ -173,7 +183,7 @@ static void dprintf(const char* fmt, ...) ...@@ -173,7 +183,7 @@ static void dprintf(const char* fmt, ...)
vsnprintf(sbuf,sizeof(sbuf),fmt,argptr); vsnprintf(sbuf,sizeof(sbuf),fmt,argptr);
sbuf[sizeof(sbuf)-1]=0; sbuf[sizeof(sbuf)-1]=0;
va_end(argptr); va_end(argptr);
OutputDebugString(sbuf); dputs(sbuf);
#endif /* _DEBUG */ #endif /* _DEBUG */
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment