Better wrapping.

SVN revision: 30972
This commit is contained in:
Sebastian Dransfeld 2007-07-25 18:14:45 +00:00
parent a6553c1a58
commit 060542adde
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ typedef struct _E_Rect E_Rect;
#define E_REALLOC(p, s, n) p = (s *)realloc(p, sizeof(s) * n)
#define E_NEW(s, n) (s *)calloc(n, sizeof(s))
#define E_NEW_BIG(s, n) (s *)malloc(n * sizeof(s))
#define E_FREE(p) { if (p) {free(p); p = NULL;} }
#define E_FREE(p) do { if (p) {free(p); p = NULL;} } while (0)
#define E_CLAMP(x, min, max) (x < min ? min : (x > max ? max : x))