Enlightenment CVS committal Author : sebastid Project : e17 Module : libs/etox
Dir : e17/libs/etox/src/style Modified Files: Etox_Style.h Log Message: Add macros. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/etox/src/style/Etox_Style.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -3 -r1.2 -r1.3 --- Etox_Style.h 29 Jul 2004 19:46:40 -0000 1.2 +++ Etox_Style.h 5 Sep 2005 15:05:53 -0000 1.3 @@ -4,6 +4,23 @@ #include <Edb.h> #include <Evas.h> +#define IF_FREE(ptr) if (ptr) free(ptr); ptr = NULL; +#define FREE(ptr) free(ptr); ptr = NULL; + +#define CHECK_PARAM_POINTER_RETURN(sparam, param, ret) \ + if (!(param)) \ + { \ + fprintf(stderr, "Fix: func: %s, param: %s\n", __FUNCTION__, sparam); \ + return ret; \ + } + +#define CHECK_PARAM_POINTER(sparam, param) \ + if (!(param)) \ + { \ + fprintf(stderr, "Fix: func: %s, param: %s\n", __FUNCTION__, sparam); \ + return; \ + } + #ifdef __cplusplus extern "C" ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs