lib/ewl_macros.h File Reference
Go to the source code of this file.
Defines | |
| #define | FREE(dat) |
| #define | IF_FREE(dat) |
| #define | IF_FREE_HASH(hash) |
| #define | IF_FREE_LIST(list) |
| #define | IF_RELEASE(item) |
| #define | INT_TO_INTPTR(x) ((void *)((long int)(x))) |
| #define | INTPTR_TO_INT(x) ((int)((long int)(x))) |
| #define | MAX(x, y) (((x) > (y)) ? (x) : (y)) |
| #define | MIN(x, y) (((x) > (y)) ? (y) : (x)) |
| #define | NEW(type, num) calloc(num, sizeof(type)) |
| #define | REALLOC(dat, type, num) dat = realloc(dat, sizeof(type) * (num)) |
| #define | UINT_TO_UINTPTR(x) ((void *)((unsigned long int)(x))) |
| #define | UINTPTR_TO_UINT(x) ((unsigned int)((unsigned long int)(x))) |
| #define | ZERO(ptr, type, num) ptr = memset(ptr, 0, sizeof(type) * (num)) |