Download

Support

lib/ewl_macros.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


Defines

#define ARRAY_COUNT(x)   (sizeof(x) / sizeof(*(x)))
#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))

Copyright © Enlightenment.org

Enlightened Widget Library Documentation Generated: Sun Sep 27 01:49:19 2009