Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_debug.h Log Message: - allow args to DWARNING =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_debug.h,v retrieving revision 1.19 retrieving revision 1.20 diff -u -3 -r1.19 -r1.20 --- ewl_debug.h 20 Apr 2006 04:09:51 -0000 1.19 +++ ewl_debug.h 10 Aug 2006 07:48:44 -0000 1.20 @@ -99,12 +99,12 @@ return num; \ } -#define DWARNING(fmt) \ +#define DWARNING(fmt, args...) \ { \ ewl_print_warning(); \ fprintf(stderr, "\tIn function:\n\n" \ "\t%s();\n\n", __func__); \ - fprintf(stderr, fmt); \ + fprintf(stderr, fmt, ## args); \ ewl_backtrace(); \ ewl_segv(); \ } @@ -193,7 +193,7 @@ #define DRETURN_PTR(ptr, lvl) return (void *)(ptr) #define DRETURN_FLOAT(num, lvl) return num #define DRETURN_INT(num, lvl) return num -#define DWARNING(fmt) {} +#define DWARNING(fmt, args...) {} #define DCHECK_PARAM_PTR(str, ptr) \ { \ if (!(ptr)) { \ ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs