Mercurial > dwindows
diff dw.h @ 1306:dbd507f42947
Added dw_debug() logging function which will output a message to the debugging console.
On Windows this uses OutputDebugMessage(), on Mac it uses NSLog() ...
The other platforms currently just dump it to stderr. Maybe more enhancements to come.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 03 Nov 2011 23:34:10 +0000 |
parents | 18a31ab94e3d |
children | 4333b58d879d |
line wrap: on
line diff
--- a/dw.h Thu Nov 03 10:09:11 2011 +0000 +++ b/dw.h Thu Nov 03 23:34:10 2011 +0000 @@ -1673,6 +1673,7 @@ int API dw_pixmap_set_font(HPIXMAP pixmap, char *fontname); void API dw_pixmap_destroy(HPIXMAP pixmap); void API dw_beep(int freq, int dur); +void API dw_debug(char *format, ...); int API dw_messagebox(char *title, int flags, char *format, ...); void API dw_environment_query(DWEnv *env); int API dw_exec(char *program, int type, char **params);