if (!(cond)){\
return;\
}\
-} while(0)
+} while (0)
#define RET_IF_FAIL(cond, err) do {\
if (!(cond)){\
return err;\
}\
-} while(0)
+} while (0)
#define CATCH_IF_FAIL(cond) do {\
if (!(cond)){\
goto CATCH;\
}\
-} while(0)
+} while (0)
#define CATCH_IF_FAIL_X(cond, expr) do {\
if (!(cond)){\
expr;\
goto CATCH;\
}\
-} while(0)
+} while (0)
#define GOTO_IF_FAIL(cond, catch_block) do {\
if (!(cond)){\
goto catch_block;\
}\
-} while(0)
+} while (0)
#define SAFE_DELETE(x) do {\
- if (x != NULL) {\
+ if (x != NULL){\
free(x); \
x = NULL;\
}\
-} while(0)
+} while (0)
#define _SAFE_DUP(x) ((x) ? strdup(x) : NULL)