Commit 05354ed4 authored by Mathieu L Bouchard's avatar Mathieu L Bouchard
Browse files

also wrap sys_gui for debugging

parent 6a612262
...@@ -13,7 +13,7 @@ extern "C" { ...@@ -13,7 +13,7 @@ extern "C" {
#define PD_MAJOR_VERSION 0 #define PD_MAJOR_VERSION 0
#define PD_MINOR_VERSION 42 #define PD_MINOR_VERSION 42
#define PD_BUGFIX_VERSION 7 #define PD_BUGFIX_VERSION 7
#define PD_TEST_VERSION "20140811" #define PD_TEST_VERSION "20140813"
#define PDL2ORK #define PDL2ORK
/* old name for "MSW" flag -- we have to take it for the sake of many old /* old name for "MSW" flag -- we have to take it for the sake of many old
...@@ -658,6 +658,7 @@ EXTERN void sys_vvguid(const char *file, int line, const char *fmt, va_list); ...@@ -658,6 +658,7 @@ EXTERN void sys_vvguid(const char *file, int line, const char *fmt, va_list);
#endif #endif
EXTERN void sys_gui(const char *s); EXTERN void sys_gui(const char *s);
#define sys_vgui(args...) sys_vguid(__FILE__,__LINE__,args) #define sys_vgui(args...) sys_vguid(__FILE__,__LINE__,args)
#define sys_gui(s) sys_vguid(__FILE__,__LINE__,"%s",s)
EXTERN void sys_pretendguibytes(int n); EXTERN void sys_pretendguibytes(int n);
EXTERN void sys_queuegui(void *client, t_glist *glist, t_guicallbackfn f); EXTERN void sys_queuegui(void *client, t_glist *glist, t_guicallbackfn f);
......
...@@ -717,6 +717,7 @@ void sys_vvgui(const char *fmt, va_list ap) { ...@@ -717,6 +717,7 @@ void sys_vvgui(const char *fmt, va_list ap) {
if (sys_guibufhead>0) lastend=sys_guibuf[sys_guibufhead-1]; if (sys_guibufhead>0) lastend=sys_guibuf[sys_guibufhead-1];
} }
#undef sys_vgui #undef sys_vgui
#undef sys_gui
void sys_vgui(const char *fmt, ...) { void sys_vgui(const char *fmt, ...) {
va_list ap; va_list ap;
va_start(ap, fmt); va_start(ap, fmt);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment