changeset 2906:9d6280f206bd

Minor code cleanups in the template and C++ bindings.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 25 Dec 2022 16:21:52 +0000
parents 0f5008c05134
children afd2d900d1e9
files dw.hpp template/dw.c
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dw.hpp	Sun Dec 25 16:02:59 2022 +0000
+++ b/dw.hpp	Sun Dec 25 16:21:52 2022 +0000
@@ -257,7 +257,7 @@
             ConfigureConnected = true;
         } else {
             ConfigureConnected = false;
-    }
+        }
     }
     static int _OnDelete(HWND window, void *data) { 
         if(reinterpret_cast<Window *>(data)->_ConnectDelete)
--- a/template/dw.c	Sun Dec 25 16:02:59 2022 +0000
+++ b/template/dw.c	Sun Dec 25 16:21:52 2022 +0000
@@ -362,12 +362,15 @@
    va_list args;
 
    va_start(args, format);
-   vfprintf(stderr, format, args);
+   dw_vdebug(format, args);
    va_end(args);
 }
 
 void API dw_vdebug(const char *format, va_list args)
 {
+   /* Output to stderr, if there is another way to send it
+    * on the implementation platform, change this.
+    */
    vfprintf(stderr, format, args);
 }