(Fexternal_debugging_output): On Windows output to debugger.
authorRichard M. Stallman <rms@gnu.org>
Fri, 12 Sep 1997 04:06:46 +0000 (04:06 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 12 Sep 1997 04:06:46 +0000 (04:06 +0000)
src/print.c

index 67b3080..d1c310e 100644 (file)
@@ -731,7 +731,15 @@ to make it write to the debugging output.\n")
 {
   CHECK_NUMBER (character, 0);
   putc (XINT (character), stderr);
-  
+
+#ifdef WINDOWSNT
+  /* Send the output to a debugger (nothing happens if there isn't one).  */
+  {
+    char buf[2] = {(char) XINT (character), '\0'};
+    OutputDebugString (buf);
+  }
+#endif
+
   return character;
 }